Commit 0ee8eea2 authored by mlippautz's avatar mlippautz Committed by Commit bot

[heap] Consider both marking deques when triggering a GC in finalization

R=ulan@chromium.org
BUG=chromium:468240

Review-Url: https://codereview.chromium.org/2418803003
Cr-Commit-Position: refs/heads/master@{#40284}
parent 88a8cc7f
...@@ -4202,8 +4202,7 @@ void Heap::FinalizeIncrementalMarkingIfComplete( ...@@ -4202,8 +4202,7 @@ void Heap::FinalizeIncrementalMarkingIfComplete(
(!incremental_marking()->finalize_marking_completed() && (!incremental_marking()->finalize_marking_completed() &&
MarkingDequesAreEmpty()))) { MarkingDequesAreEmpty()))) {
FinalizeIncrementalMarking(gc_reason); FinalizeIncrementalMarking(gc_reason);
} else if (incremental_marking()->IsComplete() || } else if (incremental_marking()->IsComplete() || MarkingDequesAreEmpty()) {
(mark_compact_collector()->marking_deque()->IsEmpty())) {
CollectAllGarbage(current_gc_flags_, gc_reason); CollectAllGarbage(current_gc_flags_, gc_reason);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment