Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index dbf0c8ed9aaee7b3b5e8d16fd8bbcbf9f69c66c4..e95dd2965ba708eabe6c6fbd18b0a13d6c0adce2 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -4046,9 +4046,7 @@ void Heap::MakeHeapIterable() { |
CollectAllGarbage(kMakeHeapIterableMask, |
GarbageCollectionReason::kMakeHeapIterable); |
} |
- if (mark_compact_collector()->sweeping_in_progress()) { |
- mark_compact_collector()->EnsureSweepingCompleted(); |
- } |
+ mark_compact_collector()->EnsureSweepingCompleted(); |
DCHECK(IsHeapIterable()); |
} |
@@ -4698,10 +4696,8 @@ void Heap::Verify() { |
CHECK(HasBeenSetUp()); |
HandleScope scope(isolate()); |
- if (mark_compact_collector()->sweeping_in_progress()) { |
- // We have to wait here for the sweeper threads to have an iterable heap. |
- mark_compact_collector()->EnsureSweepingCompleted(); |
- } |
+ // We have to wait here for the sweeper threads to have an iterable heap. |
+ mark_compact_collector()->EnsureSweepingCompleted(); |
VerifyPointersVisitor visitor; |
IterateRoots(&visitor, VISIT_ONLY_STRONG); |