mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibJS: Put zombie cell tracking code behind a compile-time flag
Since this is a debug-only feature, let's not have it impact GC marking performance when you don't need it.
This commit is contained in:
parent
f290c59dd8
commit
6a1b82df2b
Notes:
sideshowbarker
2024-07-18 03:12:43 +09:00
Author: https://github.com/awesomekling
Commit: 6a1b82df2b
13 changed files with 76 additions and 8 deletions
|
@ -25,7 +25,12 @@ protected:
|
|||
{
|
||||
}
|
||||
|
||||
virtual void did_become_zombie() override { revoke_weak_ptrs(); }
|
||||
#ifdef JS_TRACK_ZOMBIE_CELLS
|
||||
virtual void did_become_zombie() override
|
||||
{
|
||||
revoke_weak_ptrs();
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue