Commit 971929c3 authored by hpayer's avatar hpayer Committed by Commit bot

[heap] Don't perform huge marking steps when delaying full collection.

BUG=

Review URL: https://codereview.chromium.org/1878573002

Cr-Commit-Position: refs/heads/master@{#35378}
parent dea67cf0
......@@ -983,10 +983,6 @@ bool Heap::CollectGarbage(GarbageCollector collector, const char* gc_reason,
!ShouldAbortIncrementalMarking() && !incremental_marking()->IsStopped() &&
!incremental_marking()->should_hurry() && FLAG_incremental_marking &&
OldGenerationAllocationLimitReached()) {
// Make progress in incremental marking.
const intptr_t kStepSizeWhenDelayedByScavenge = 1 * MB;
incremental_marking()->Step(kStepSizeWhenDelayedByScavenge,
IncrementalMarking::NO_GC_VIA_STACK_GUARD);
if (!incremental_marking()->IsComplete() &&
!mark_compact_collector()->marking_deque_.IsEmpty() &&
!FLAG_gc_global) {
......
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