Index: Source/platform/heap/Heap.cpp |
diff --git a/Source/platform/heap/Heap.cpp b/Source/platform/heap/Heap.cpp |
index 2388869a44f9d6f473d5184b3a9732703760e7ed..05c7a799f316a4ea43b58f6f0c40d4147ffc18c3 100644 |
--- a/Source/platform/heap/Heap.cpp |
+++ b/Source/platform/heap/Heap.cpp |
@@ -2266,6 +2266,7 @@ const char* Heap::gcReasonString(GCReason reason) |
void Heap::collectGarbage(ThreadState::StackState stackState, ThreadState::GCType gcType, GCReason reason) |
{ |
ThreadState* state = ThreadState::current(); |
+ RELEASE_ASSERT(!state->isInGC()); |
ThreadState::GCState originalGCState = state->gcState(); |
state->setGCState(ThreadState::StoppingOtherThreads); |