Index: Source/platform/heap/Heap.cpp |
diff --git a/Source/platform/heap/Heap.cpp b/Source/platform/heap/Heap.cpp |
index c938b3a3ffe05e998fc64b37b3048150329650cc..0403cebef1f17755bb0011494a50c6b882de354b 100644 |
--- a/Source/platform/heap/Heap.cpp |
+++ b/Source/platform/heap/Heap.cpp |
@@ -1878,6 +1878,7 @@ void Heap::collectGarbage(ThreadState::StackState stackState, ThreadState::GCTyp |
{ |
ThreadState* state = ThreadState::current(); |
RELEASE_ASSERT(!state->isInGC()); |
+ state->completeSweep(); |
ThreadState::GCState originalGCState = state->gcState(); |
state->setGCState(ThreadState::StoppingOtherThreads); |