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

Unified Diff: src/heap/heap.cc

Issue 1221573003: Grow heap slower if --optimize-for-size flag is on. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 8c507d48978bf5aebd6a11eb4e5ebc1e81e3b3b3..56a7941d261b0b0debb42b37f60c42639ca1f167 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -5598,7 +5598,8 @@ void Heap::SetOldGenerationAllocationLimit(intptr_t old_gen_size,
// We set the old generation growing factor to 2 to grow the heap slower on
// memory-constrained devices.
- if (max_old_generation_size_ <= kMaxOldSpaceSizeMediumMemoryDevice) {
+ if (max_old_generation_size_ <= kMaxOldSpaceSizeMediumMemoryDevice ||
+ FLAG_optimize_for_size) {
factor = Min(factor, kMaxHeapGrowingFactorMemoryConstrained);
}
« 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