Chromium Code Reviews| 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; |
| } |
| } |