LibGC+LibWeb: Only ask relevant cell types if they must survive GC

Instead of checking if every single cell overrides the "must survive GC"
virtual, we can make this a HeapBlock level thing.

This avoids almost an entire GC heap traversal during the mark phase.
This commit is contained in:
Andreas Kling
2025-12-27 19:28:35 +01:00
committed by Andreas Kling
parent fac81e84ba
commit 280049e52d
Notes: github-actions[bot] 2026-01-07 19:52:36 +00:00
11 changed files with 32 additions and 32 deletions

View File

@@ -114,7 +114,6 @@ WebIDL::ExceptionOr<GC::Ref<WebSocket>> WebSocket::construct_impl(JS::Realm& rea
WebSocket::WebSocket(JS::Realm& realm)
: EventTarget(realm)
{
set_overrides_must_survive_garbage_collection(true);
}
WebSocket::~WebSocket() = default;