Index: Source/platform/heap/ThreadState.cpp |
diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp |
index dcc2c816394c6d51d6180e1203584b4c7e8da6e2..8d2eb9f6f6f2495de33ea25adf3dc679516bd960 100644 |
--- a/Source/platform/heap/ThreadState.cpp |
+++ b/Source/platform/heap/ThreadState.cpp |
@@ -99,7 +99,6 @@ |
, m_gcForbiddenCount(0) |
, m_persistentAllocated(0) |
, m_persistentFreed(0) |
- , m_pageNavigationCount(0) |
, m_vectorBackingHeapIndex(Vector1HeapIndex) |
, m_currentHeapAges(0) |
, m_isTerminating(false) |
@@ -703,16 +702,6 @@ |
completeSweep(); |
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 |
- // force 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(); |
@@ -997,7 +986,6 @@ |
flushHeapDoesNotContainCacheIfNeeded(); |
clearHeapAges(); |
updatePersistentCounters(); |
- m_pageNavigationCount = 0; |
} |
void ThreadState::postGC(GCType gcType) |