[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}
This commit is contained in:
parent
0698f10661
commit
1e8f6b7de4
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user