Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 8ff27dc32a21a1931a7ec3524b035589c285dc19..d4cd78ebdaa7f1161ff56ea45a5cfdf6f6fe3e8e 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -67,7 +67,8 @@ Heap::Heap() |
initial_semispace_size_(Page::kPageSize), |
target_semispace_size_(Page::kPageSize), |
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), |
max_executable_size_(256ul * (kPointerSize / 4) * MB), |
// 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) { |
initial_old_generation_size_ = FLAG_initial_old_space_size * MB; |
} 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_; |