mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-12 09:56:45 +02:00
Maintain a HashTable<HeapBlock*> of live heap blocks in the Heap, updated on block creation and destruction. Weak containers (WeakMap, WeakSet, WeakRef, FinalizationRegistry) now check block liveness before accessing cell memory in their remove_dead_cells() methods. This prevents use-after-free when blocks have been freed during incremental sweeping.
2.3 KiB
2.3 KiB