| Index: third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| index ad0e78144a21ce5f2dd7559dc777e3eb656896c3..4a1efe48e8904b9f5bcf581155bcf3d28980ee82 100644
|
| --- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| +++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| @@ -99,7 +99,6 @@ ThreadState::ThreadState()
|
| , m_gcForbiddenCount(0)
|
| , m_persistentAllocated(0)
|
| , m_persistentFreed(0)
|
| - , m_pageNavigationCount(0)
|
| , m_vectorBackingHeapIndex(Vector1HeapIndex)
|
| , m_currentHeapAges(0)
|
| , m_isTerminating(false)
|
| @@ -704,17 +703,6 @@ void ThreadState::schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio)
|
| ASSERT(!isSweepingInProgress());
|
| ASSERT(!sweepForbidden());
|
|
|
| - m_pageNavigationCount++;
|
| - if (m_pageNavigationCount >= 5) {
|
| - // A frame retains a lot of memory in the V8 side. V8's GC cannot
|
| - // collect the memory until Oilpan's GC collects the frame. So we
|
| - // for a conservative GC if no Oilpan's GC has been observed in
|
| - // the past 5 frame navigations.
|
| - //
|
| - Heap::collectGarbage(HeapPointersOnStack, GCWithoutSweep, Heap::ConservativeGC);
|
| - return;
|
| - }
|
| -
|
| if (shouldSchedulePageNavigationGC(estimatedRemovalRatio))
|
| schedulePageNavigationGC();
|
| }
|
| @@ -998,7 +986,6 @@ void ThreadState::preGC()
|
| flushHeapDoesNotContainCacheIfNeeded();
|
| clearHeapAges();
|
| updatePersistentCounters();
|
| - m_pageNavigationCount = 0;
|
| }
|
|
|
| void ThreadState::postGC(GCType gcType)
|
|
|