Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index dde06217a2c035250df017790f2e72b01e8435de..9806b4edbdad193bbba387eda8336ff960193e07 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -936,7 +936,8 @@ intptr_t IncrementalMarking::Step(intptr_t allocated_bytes, |
if (state_ == SWEEPING) { |
if (heap_->mark_compact_collector()->sweeping_in_progress() && |
- heap_->mark_compact_collector()->IsSweepingCompleted()) { |
+ (heap_->mark_compact_collector()->IsSweepingCompleted() || |
+ !FLAG_concurrent_sweeping)) { |
heap_->mark_compact_collector()->EnsureSweepingCompleted(); |
} |
if (!heap_->mark_compact_collector()->sweeping_in_progress()) { |