Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 66f9ba0943a1e05039d629cc7ecaf24289e85e41..a3fa810a87e4e394b66006c812fbda5a61584474 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -4202,8 +4202,7 @@ void Heap::FinalizeIncrementalMarkingIfComplete( |
(!incremental_marking()->finalize_marking_completed() && |
MarkingDequesAreEmpty()))) { |
FinalizeIncrementalMarking(gc_reason); |
- } else if (incremental_marking()->IsComplete() || |
- (mark_compact_collector()->marking_deque()->IsEmpty())) { |
+ } else if (incremental_marking()->IsComplete() || MarkingDequesAreEmpty()) { |
CollectAllGarbage(current_gc_flags_, gc_reason); |
} |
} |