Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2210)

Unified Diff: Source/platform/heap/ThreadState.cpp

Issue 1334683002: Oilpan: An Oilpan idle GC should follow a V8 major GC (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« Source/platform/heap/ThreadState.h ('K') | « Source/platform/heap/ThreadState.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/ThreadState.cpp
diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp
index 84eb6517c6a57599e68c328f74e55aaf74f3636d..c2ce561e339879cfa0e779c237e861baf9262da1 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -670,7 +670,7 @@ bool ThreadState::shouldForceConservativeGC()
return judgeGCThreshold(32 * 1024 * 1024, 5.0);
}
-void ThreadState::scheduleV8FollowupGCIfNeeded()
+void ThreadState::scheduleV8FollowupGCIfNeeded(bool shouldScheduleIdleGC)
{
ASSERT(checkThread());
Heap::reportMemoryUsageForTracing();
@@ -684,6 +684,8 @@ void ThreadState::scheduleV8FollowupGCIfNeeded()
if (shouldScheduleV8FollowupGC())
schedulePreciseGC();
+ else if (shouldScheduleIdleGC)
+ scheduleIdleGC();
}
void ThreadState::schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio)
« Source/platform/heap/ThreadState.h ('K') | « Source/platform/heap/ThreadState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698