Commit 1e8f6b7d authored by mlippautz's avatar mlippautz Committed by Commit bot

[heap] Don't move pages in reduce memory mode

BUG=chromium:581412
R=hpayer@chromium.org

Review-Url: https://codereview.chromium.org/2374023002
Cr-Commit-Position: refs/heads/master@{#39825}
parent 0698f106
......@@ -3263,9 +3263,10 @@ void MarkCompactCollector::EvacuatePagesInParallel() {
job.AddPage(page, &abandoned_pages);
}
const bool reduce_memory = heap()->ShouldReduceMemory();
for (Page* page : newspace_evacuation_candidates_) {
live_bytes += page->LiveBytes();
if (!page->NeverEvacuate() &&
if (!reduce_memory && !page->NeverEvacuate() &&
(page->LiveBytes() > Evacuator::PageEvacuationThreshold())) {
if (page->InIntermediateGeneration()) {
EvacuateNewSpacePageVisitor::MoveToOldSpace(page, heap()->old_space());
......
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