Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index e5d1e8264a18b398fae68c565c212c707b02281b..185cb1b53780f4b9982fef2dabc2e1170f3715e7 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -1049,7 +1049,7 @@ void IncrementalMarking::FinalizeSweeping() { |
DCHECK(state_ == SWEEPING); |
if (heap_->mark_compact_collector()->sweeping_in_progress() && |
(!FLAG_concurrent_sweeping || |
- heap_->mark_compact_collector()->sweeper().IsSweepingCompleted())) { |
+ !heap_->mark_compact_collector()->sweeper().AreSweeperTasksRunning())) { |
heap_->mark_compact_collector()->EnsureSweepingCompleted(); |
} |
if (!heap_->mark_compact_collector()->sweeping_in_progress()) { |