Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index df12e79beaaf030d3d1039d079f701d461c8dec4..f22f4a91e0b7b72c6cb8cc8dfd2b99adefb5d297 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -953,7 +953,7 @@ bool Heap::CollectGarbage(GarbageCollector collector, const char* gc_reason, |
if (!mark_compact_collector()->abort_incremental_marking() && |
incremental_marking()->IsStopped() && |
incremental_marking()->ShouldActivateEvenWithoutIdleNotification()) { |
- incremental_marking()->Start(); |
+ incremental_marking()->Start(kNoGCFlags); |
} |
return next_gc_likely_to_collect_more; |
@@ -4650,8 +4650,8 @@ bool Heap::PerformIdleTimeAction(GCIdleTimeAction action, |
break; |
case DO_INCREMENTAL_MARKING: { |
if (incremental_marking()->IsStopped()) { |
- // TODO(ulan): take reduce_memory into account. |
- incremental_marking()->Start(); |
+ incremental_marking()->Start( |
+ action.reduce_memory ? kReduceMemoryFootprintMask : kNoGCFlags); |
} |
double remaining_idle_time_in_ms = 0.0; |
do { |