| Index: src/heap/memory-reducer.cc
|
| diff --git a/src/heap/memory-reducer.cc b/src/heap/memory-reducer.cc
|
| index ffd2930540a12ac69b58910529c5240b92a28d2b..53266457a8c228695857a5e84eb44cd9c0f110ee 100644
|
| --- a/src/heap/memory-reducer.cc
|
| +++ b/src/heap/memory-reducer.cc
|
| @@ -50,14 +50,7 @@ void MemoryReducer::NotifyTimer(const Event& event) {
|
| PrintIsolate(heap()->isolate(), "Memory reducer: started GC #%d\n",
|
| state_.started_gcs);
|
| }
|
| - if (heap()->ShouldOptimizeForMemoryUsage()) {
|
| - // Do full GC if memory usage has higher priority than latency. This is
|
| - // important for background tabs that do not send idle notifications.
|
| - heap()->CollectAllGarbage(Heap::kReduceMemoryFootprintMask,
|
| - "memory reducer");
|
| - } else {
|
| - heap()->StartIdleIncrementalMarking();
|
| - }
|
| + heap()->StartIdleIncrementalMarking();
|
| } else if (state_.action == kWait) {
|
| if (!heap()->incremental_marking()->IsStopped() &&
|
| heap()->ShouldOptimizeForMemoryUsage()) {
|
|
|