From e93d12a470d2bfb9611ad7abbcdb0d1f1f5c010d Mon Sep 17 00:00:00 2001 From: "hpayer@chromium.org" Date: Thu, 25 Apr 2013 09:17:07 +0000 Subject: [PATCH] Grow the old generation faster in high promotion mode. BUG= Review URL: https://codereview.chromium.org/14493011 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14431 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/heap.h b/src/heap.h index 3b8a9ea..4cd6344 100644 --- a/src/heap.h +++ b/src/heap.h @@ -1543,7 +1543,8 @@ class Heap { 8 * (Page::kPageSize > MB ? Page::kPageSize : MB); intptr_t OldGenPromotionLimit(intptr_t old_gen_size) { - const int divisor = FLAG_stress_compaction ? 10 : 3; + const int divisor = FLAG_stress_compaction ? 10 : + new_space_high_promotion_mode_active_ ? 1 : 3; intptr_t limit = Max(old_gen_size + old_gen_size / divisor, kMinimumPromotionLimit); limit += new_space_.Capacity(); @@ -1553,7 +1554,8 @@ class Heap { } intptr_t OldGenAllocationLimit(intptr_t old_gen_size) { - const int divisor = FLAG_stress_compaction ? 8 : 2; + const int divisor = FLAG_stress_compaction ? 8 : + new_space_high_promotion_mode_active_ ? 1 : 2; intptr_t limit = Max(old_gen_size + old_gen_size / divisor, kMinimumAllocationLimit); limit += new_space_.Capacity(); -- 2.7.4