Commit fa7d113a authored by ulan's avatar ulan Committed by Commit bot

Grow heap slower if --optimize-for-size flag is on.

BUG=chromium:505776
LOG=NO

Review URL: https://codereview.chromium.org/1221573003

Cr-Commit-Position: refs/heads/master@{#29457}
parent 3050b52f
......@@ -5623,7 +5623,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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment