Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Unified Diff: src/heap/mark-compact.cc

Issue 2374023002: [heap] Don't move pages in reduce memory mode (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698