Reviewers: rmcilroy,
Message:
PTAL
Description:
Grow heap slower if --optimize-for-size flag is on.
BUG=chromium:505776
LOG=NO
Please review this at https://codereview.chromium.org/1221573003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+2, -1 lines):
M src/heap/heap.cc
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);
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.