Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index e97a5a17e6f30f138ec846254323ec966bf0b3a8..1fe546386ba8d8baa5c452f87a218a19a2111781 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -4533,15 +4533,14 @@ |
} |
-void Heap::IdleMarkCompact(bool reduce_memory, const char* message) { |
+void Heap::IdleMarkCompact(const char* message) { |
bool uncommit = false; |
if (gc_count_at_last_idle_gc_ == gc_count_) { |
// No GC since the last full GC, the mutator is probably not active. |
isolate_->compilation_cache()->Clear(); |
uncommit = true; |
} |
- int flags = reduce_memory ? kReduceMemoryFootprintMask : kNoGCFlags; |
- CollectAllGarbage(flags, message); |
+ CollectAllGarbage(kReduceMemoryFootprintMask, message); |
gc_idle_time_handler_.NotifyIdleMarkCompact(); |
gc_count_at_last_idle_gc_ = gc_count_; |
if (uncommit) { |
@@ -4673,12 +4672,8 @@ |
gc_idle_time_handler_.NotifyIdleMarkCompact(); |
gc_count_at_last_idle_gc_ = gc_count_; |
} else { |
- IdleMarkCompact(false, "idle notification: finalize idle round"); |
+ IdleMarkCompact("idle notification: finalize idle round"); |
} |
- break; |
- } |
- case DO_FULL_GC_COMPACT: { |
- IdleMarkCompact(true, "idle notification: reduce memory footprint"); |
break; |
} |
case DO_SCAVENGE: |