Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index 4f9b672bf9d24d3e2649c35f4f3e4fa8490336f4..e6224714d6c338b920de556c9418827c106bf030 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -1631,8 +1631,9 @@ class Heap { |
} |
bool IsSweepingComplete() { |
- return old_data_space()->IsSweepingComplete() && |
- old_pointer_space()->IsSweepingComplete(); |
+ return !mark_compact_collector()->IsConcurrentSweepingInProgress() && |
+ old_data_space()->IsLazySweepingComplete() && |
+ old_pointer_space()->IsLazySweepingComplete(); |
} |
bool AdvanceSweepers(int step_size) { |