Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 7c08ea0eb23348599643e673bd07dd4dd841debc..2199e09063760e73123c7f2d5972e3c2224ff064 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -3296,9 +3296,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()); |