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

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

Issue 1301893003: Oilpan: Reenable a threshold for page navigation GCs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | 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 0b06ceacab0bb033d7d863562c7c7acf73d172a3..8c3dc138d83a5a5bc5dc14939bf489792c125c18 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -659,7 +659,7 @@ bool ThreadState::shouldSchedulePreciseGC()
bool ThreadState::shouldSchedulePageNavigationGC(float estimatedRemovalRatio)
{
- return judgeGCThreshold(1024 * 1024, 1.5);
+ return judgeGCThreshold(1024 * 1024, 1.5 * (1 - estimatedRemovalRatio));
}
bool ThreadState::shouldForceConservativeGC()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698