diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-21 14:35:19 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-21 14:35:19 +0200 |
commit | c8baf29d82ca4db83f32a54015a3c5e92e20930e (patch) | |
tree | 1a2b1dc60a7e3ffaf6a711ac0fd195ffa2ca2fb9 /Libraries/LibJS/Heap/Heap.h | |
parent | df3ff76815893104eb1c2686c4e51d70793c28f3 (diff) | |
download | serenity-c8baf29d82ca4db83f32a54015a3c5e92e20930e.zip |
LibJS: Assert if garbage collection is restarted while ongoing
We can't GC while we're already in GC. Assert if this happens.
Diffstat (limited to 'Libraries/LibJS/Heap/Heap.h')
-rw-r--r-- | Libraries/LibJS/Heap/Heap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibJS/Heap/Heap.h b/Libraries/LibJS/Heap/Heap.h index b1381a8dae..0d727210a4 100644 --- a/Libraries/LibJS/Heap/Heap.h +++ b/Libraries/LibJS/Heap/Heap.h @@ -109,6 +109,8 @@ private: size_t m_gc_deferrals { 0 }; bool m_should_gc_when_deferral_ends { false }; + + bool m_collecting_garbage { false }; }; } |