| Index: Source/platform/heap/ThreadState.cpp
|
| diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp
|
| index 0e96faec732ecedf2c6edf93aaea0b3e098e7384..fa57e7ebba437ed9c6461fa7da2d34924fda81cc 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)
|
| @@ -907,6 +908,7 @@ void ThreadState::preGC()
|
| makeConsistentForSweeping();
|
| prepareRegionTree();
|
| flushHeapDoesNotContainCacheIfNeeded();
|
| + m_lazySweepToggle = !m_lazySweepToggle;
|
| if (isMainThread())
|
| m_allocatedObjectSizeBeforeGC = Heap::allocatedObjectSize() + Heap::markedObjectSize();
|
| }
|
|
|