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

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

Issue 1698703002: Disable page navigation GC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2b953d83646578b3e9c5c7f0e7d59d4642783a4a..8336e8c4faef4092eff8b2fcd51bc215fbe8e06c 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
@@ -563,7 +563,10 @@ bool ThreadState::shouldScheduleV8FollowupGC()
bool ThreadState::shouldSchedulePageNavigationGC(float estimatedRemovalRatio)
{
- return judgeGCThreshold(1024 * 1024, 1.5 * (1 - estimatedRemovalRatio));
+ // If estimatedRemovalRatio is low we should let IdleGC handle this.
+ if (estimatedRemovalRatio == 0.01)
haraken 2016/02/14 23:23:04 I'm confused with this branch. - Are you intendin
keishi 2016/02/15 01:40:50 Yes, sorry.
+ return false;
+ return judgeGCThreshold(32 * 1024 * 1024, 1.5 * (1 - estimatedRemovalRatio));
}
bool ThreadState::shouldForceConservativeGC()
@@ -660,7 +663,6 @@ void ThreadState::schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio)
dataLogF("Scheduled PageNavigationGC\n");
#endif
schedulePageNavigationGC();
- return;
}
}
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698