mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +00:00
LibJS: Make GC deferral friendship based
This commit is contained in:
parent
9871bd4bec
commit
87e063db65
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