Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index 1f7526e71a58e146706c9b6922ab40c25164e457..85377c54be68d93271d6543565141f28e1b6c31c 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -1519,8 +1519,9 @@ class Heap { |
8 * (Page::kPageSize > MB ? Page::kPageSize : MB); |
intptr_t OldGenerationAllocationLimit(intptr_t old_gen_size) { |
- intptr_t limit = FLAG_stress_compaction ? |
- old_gen_size + old_gen_size / 10 : old_gen_size * 4; |
+ intptr_t limit = FLAG_stress_compaction |
+ ? old_gen_size + old_gen_size / 10 |
+ : old_gen_size * old_generation_growing_factor_; |
limit = Max(limit, kMinimumOldGenerationAllocationLimit); |
limit += new_space_.Capacity(); |
intptr_t halfway_to_the_max = (old_gen_size + max_old_generation_size_) / 2; |
@@ -1886,6 +1887,8 @@ class Heap { |
intptr_t max_executable_size_; |
intptr_t maximum_committed_; |
+ int old_generation_growing_factor_; |
Michael Starzinger
2014/04/15 12:11:50
nit: Can we haz short comment of the semantics?
|
+ |
// For keeping track of how much data has survived |
// scavenge since last new space expansion. |
int survived_since_last_expansion_; |