Files
ladybird/Libraries/LibJS/Runtime/ArrayBuffer.cpp
Andreas Kling 1ab23e67e9 LibJS: Use an intrusive list for cached typed array views
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.
2026-04-30 15:39:23 +02:00

18 KiB