1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:38:10 +00:00

LibJS: Assert if garbage collection is restarted while ongoing

We can't GC while we're already in GC. Assert if this happens.
This commit is contained in:
Andreas Kling 2020-09-21 14:35:19 +02:00
parent df3ff76815
commit c8baf29d82
2 changed files with 5 additions and 0 deletions

View file

@ -109,6 +109,8 @@ private:
size_t m_gc_deferrals { 0 };
bool m_should_gc_when_deferral_ends { false };
bool m_collecting_garbage { false };
};
}