mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
LibJS: Make GC deferral friendship based
This commit is contained in:
parent
9871bd4bec
commit
87e063db65
Notes:
sideshowbarker
2024-07-18 02:13:10 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 87e063db65
Pull-request: https://github.com/SerenityOS/serenity/pull/21202
3 changed files with 8 additions and 7 deletions
|
@ -15,12 +15,12 @@ public:
|
|||
explicit DeferGC(Heap& heap)
|
||||
: m_heap(heap)
|
||||
{
|
||||
m_heap.defer_gc({});
|
||||
m_heap.defer_gc();
|
||||
}
|
||||
|
||||
~DeferGC()
|
||||
{
|
||||
m_heap.undefer_gc({});
|
||||
m_heap.undefer_gc();
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue