Index: src/heap/memory-reducer.cc |
diff --git a/src/heap/memory-reducer.cc b/src/heap/memory-reducer.cc |
index 4cf8bc2e3686a2571b4c7cc98a9d05c15fe11621..7f51ef29f74385200aee498370e8a58c9e297de2 100644 |
--- a/src/heap/memory-reducer.cc |
+++ b/src/heap/memory-reducer.cc |
@@ -103,8 +103,8 @@ void MemoryReducer::NotifyBackgroundIdleNotification(const Event& event) { |
// TODO(ulan): Replace it with incremental marking GC once |
// chromium:490559 is fixed. |
if (event.time_ms > state_.last_gc_time_ms + kLongDelayMs) { |
- heap()->CollectAllGarbage(Heap::kReduceMemoryFootprintMask, |
- "memory reducer background GC"); |
+ heap()->CollectAllGarbage("memory reducer background GC", |
+ Heap::kReduceMemoryFootprintMask); |
} else { |
DCHECK(FLAG_incremental_marking); |
heap()->StartIdleIncrementalMarking(); |