Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index 30129c5d458d7206cab3ef05c24fb088e3ea369b..9d95dd8f7ab39b67a97c9e568f7706067c46bf88 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -1053,7 +1053,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()) { |