Commit a7b7d691 authored by hpayer's avatar hpayer Committed by Commit bot

[heap] Enforce finalization of marking at heap limit when optimizing for memory usage.

BUG=chromium:634900

Review-Url: https://codereview.chromium.org/2225363002
Cr-Commit-Position: refs/heads/master@{#38495}
parent c403ab7f
......@@ -384,7 +384,9 @@ bool Heap::InOldSpaceSlow(Address address) {
}
bool Heap::OldGenerationAllocationLimitReached() {
if (!incremental_marking()->IsStopped()) return false;
if (!incremental_marking()->IsStopped() && !ShouldOptimizeForMemoryUsage()) {
return false;
}
return OldGenerationSpaceAvailable() < 0;
}
......
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