| Index: Source/platform/heap/Heap.cpp
|
| diff --git a/Source/platform/heap/Heap.cpp b/Source/platform/heap/Heap.cpp
|
| index d4ab0e40432e6cf8f45c5157c92622073e1e2fce..147a16564449735ae58332ab87bca341032eb812 100644
|
| --- a/Source/platform/heap/Heap.cpp
|
| +++ b/Source/platform/heap/Heap.cpp
|
| @@ -456,9 +456,18 @@ void BaseHeap::completeSweep()
|
| ASSERT(threadState()->sweepForbidden());
|
| ASSERT(!threadState()->isMainThread() || ScriptForbiddenScope::isScriptForbidden());
|
|
|
| - while (m_firstUnsweptPage) {
|
| +#if ENABLE(ASSERT)
|
| + if (heapIndex() == EagerSweepHeapIndex)
|
| + threadState()->enterEagerSweepScope();
|
| +#endif
|
| +
|
| + while (m_firstUnsweptPage)
|
| sweepUnsweptPage();
|
| - }
|
| +
|
| +#if ENABLE(ASSERT)
|
| + if (heapIndex() == EagerSweepHeapIndex)
|
| + threadState()->leaveEagerSweepScope();
|
| +#endif
|
| }
|
|
|
| NormalPageHeap::NormalPageHeap(ThreadState* state, int index)
|
|
|