Start with a more conservative initial old generation size.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#26692}
This commit is contained in:
hpayer 2015-02-17 06:00:13 -08:00 committed by Commit bot
parent acd9c46ca7
commit 0918c8c119
2 changed files with 6 additions and 2 deletions

View File

@ -67,7 +67,8 @@ Heap::Heap()
initial_semispace_size_(Page::kPageSize), initial_semispace_size_(Page::kPageSize),
target_semispace_size_(Page::kPageSize), target_semispace_size_(Page::kPageSize),
max_old_generation_size_(700ul * (kPointerSize / 4) * MB), max_old_generation_size_(700ul * (kPointerSize / 4) * MB),
initial_old_generation_size_(max_old_generation_size_), initial_old_generation_size_(max_old_generation_size_ /
kInitalOldGenerationLimitFactor),
old_generation_size_configured_(false), old_generation_size_configured_(false),
max_executable_size_(256ul * (kPointerSize / 4) * MB), max_executable_size_(256ul * (kPointerSize / 4) * MB),
// Variables set based on semispace_size_ and old_generation_size_ in // Variables set based on semispace_size_ and old_generation_size_ in
@ -5281,7 +5282,8 @@ bool Heap::ConfigureHeap(int max_semi_space_size, int max_old_space_size,
if (FLAG_initial_old_space_size > 0) { if (FLAG_initial_old_space_size > 0) {
initial_old_generation_size_ = FLAG_initial_old_space_size * MB; initial_old_generation_size_ = FLAG_initial_old_space_size * MB;
} else { } else {
initial_old_generation_size_ = max_old_generation_size_ / 2; initial_old_generation_size_ =
max_old_generation_size_ / kInitalOldGenerationLimitFactor;
} }
old_generation_allocation_limit_ = initial_old_generation_size_; old_generation_allocation_limit_ = initial_old_generation_size_;

View File

@ -1084,6 +1084,8 @@ class Heap {
static const intptr_t kMinimumOldGenerationAllocationLimit = static const intptr_t kMinimumOldGenerationAllocationLimit =
8 * (Page::kPageSize > MB ? Page::kPageSize : MB); 8 * (Page::kPageSize > MB ? Page::kPageSize : MB);
static const int kInitalOldGenerationLimitFactor = 7;
static const int kPointerMultiplier = i::kPointerSize / 4; static const int kPointerMultiplier = i::kPointerSize / 4;
// The new space size has to be a power of 2. Sizes are in MB. // The new space size has to be a power of 2. Sizes are in MB.