Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 6612840504b94645dcc4663d746bdcdf3ca2f683..8d20cadd0b00f0eebddd1874b7601f5a2b5b7f2f 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -962,6 +962,7 @@ bool Heap::CollectGarbage(GarbageCollector collector, |
!ShouldFinalizeIncrementalMarking() && !ShouldAbortIncrementalMarking() && |
!incremental_marking()->IsStopped() && |
!incremental_marking()->should_hurry() && |
+ !incremental_marking()->NeedsFinalization() && |
!IsCloseToOutOfMemory(new_space_->Capacity())) { |
if (!incremental_marking()->IsComplete() && |
!mark_compact_collector()->marking_deque()->IsEmpty() && |