Index: Source/platform/heap/ThreadState.cpp |
diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp |
index 82fde716f1971ffe6a40ceb7aa311dcbbb05416c..e874c33304ff17073db1ebe85e0451e35d8ee994 100644 |
--- a/Source/platform/heap/ThreadState.cpp |
+++ b/Source/platform/heap/ThreadState.cpp |
@@ -314,6 +314,7 @@ ThreadState::ThreadState() |
, m_sweepForbidden(false) |
, m_noAllocationCount(0) |
, m_isTerminating(false) |
+ , m_lazySweepToggle(false) |
, m_shouldFlushHeapDoesNotContainCache(false) |
, m_collectionRate(1.0) |
, m_gcState(NoGCScheduled) |
@@ -906,6 +907,7 @@ void ThreadState::preGC() |
makeConsistentForSweeping(); |
prepareRegionTree(); |
flushHeapDoesNotContainCacheIfNeeded(); |
+ m_lazySweepToggle = !m_lazySweepToggle; |
if (isMainThread()) |
m_allocatedObjectSizeBeforeGC = Heap::allocatedObjectSize() + Heap::markedObjectSize(); |
} |