Commit 10a10dd9 authored by Keishi Hattori's avatar Keishi Hattori Committed by Commit Bot

Oilpan: Enable HeapCompaction for incremental marking

Enables HeapCompaction for kIncrementalIdleGC and kIncrementalV8FollowupGC.

Bug: 864425

Change-Id: I1fb04d7c501a8519e106237946f86f52eb7ce8f8
Reviewed-on: https://chromium-review.googlesource.com/c/1297782Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Keishi Hattori <keishi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603477}
parent ec1f9613
...@@ -367,14 +367,10 @@ bool HeapCompact::ShouldCompact(ThreadHeap* heap, ...@@ -367,14 +367,10 @@ bool HeapCompact::ShouldCompact(ThreadHeap* heap,
return force_compaction_gc_; return force_compaction_gc_;
} }
// TODO(keishi): Should be enable after fixing the crashes.
if (marking_type == BlinkGC::kIncrementalMarking)
return false;
// TODO(harukamt): Add kIncrementalIdleGC and kIncrementalV8FollowupGC when we
// enable heap compaction for incremental marking.
if (reason != BlinkGC::GCReason::kIdleGC && if (reason != BlinkGC::GCReason::kIdleGC &&
reason != BlinkGC::GCReason::kPreciseGC && reason != BlinkGC::GCReason::kPreciseGC &&
reason != BlinkGC::GCReason::kIncrementalIdleGC &&
reason != BlinkGC::GCReason::kIncrementalV8FollowupGC &&
reason != BlinkGC::GCReason::kForcedGC) reason != BlinkGC::GCReason::kForcedGC)
return false; return false;
......
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