| 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 1e039b9e5512788296556f1773f4aee046d0a7e5..a481281eb01d2e06a6cb2e7caa3291db9ae7665f 100644
|
| --- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| +++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| @@ -575,7 +575,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)
|
| + return false;
|
| + return judgeGCThreshold(32 * 1024 * 1024, 1.5 * (1 - estimatedRemovalRatio));
|
| }
|
|
|
| bool ThreadState::shouldForceConservativeGC()
|
| @@ -672,7 +675,6 @@ void ThreadState::schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio)
|
| dataLogF("Scheduled PageNavigationGC\n");
|
| #endif
|
| schedulePageNavigationGC();
|
| - return;
|
| }
|
| }
|
|
|
|
|