Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 219584b2c41db96c94666c15bf5b6372d5ece376..ddec9a9f8dd0c7bceebe2b17305d84de20a34cdd 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -790,7 +790,7 @@ bool Heap::CollectGarbage(GarbageCollector collector, |
const intptr_t kStepSizeWhenDelayedByScavenge = 1 * MB; |
incremental_marking()->Step(kStepSizeWhenDelayedByScavenge, |
IncrementalMarking::NO_GC_VIA_STACK_GUARD); |
- if (!incremental_marking()->IsComplete()) { |
+ if (!incremental_marking()->IsComplete() && !FLAG_gc_global) { |
if (FLAG_trace_incremental_marking) { |
PrintF("[IncrementalMarking] Delaying MarkSweep.\n"); |
} |