mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-12 09:56:45 +02:00
Track typed array views with cached backing-store pointers through an intrusive list instead of a WeakHashSet. The cache only needs linear enumeration when an ArrayBuffer detaches, and IntrusiveList::append() already deduplicates a view when initialization refreshes its cached pointer more than once. Unlink cached views from TypedArrayBase::finalize(), before cell destruction, so dead views do not leave list nodes behind. Also unlink when a view can no longer cache its data pointer.
18 KiB
18 KiB