mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
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:
committed by
Andreas Kling
parent
fac81e84ba
commit
280049e52d
Notes:
github-actions[bot]
2026-01-07 19:52:36 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/280049e52d2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7369
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user