Commit 21256676 authored by hpayer@chromium.org's avatar hpayer@chromium.org

Grow small old generation faster.

BUG=
R=bmeurer@chromium.org, mstarzinger@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20640 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 4620ae5c
...@@ -1524,10 +1524,9 @@ class Heap { ...@@ -1524,10 +1524,9 @@ class Heap {
8 * (Page::kPageSize > MB ? Page::kPageSize : MB); 8 * (Page::kPageSize > MB ? Page::kPageSize : MB);
intptr_t OldGenerationAllocationLimit(intptr_t old_gen_size) { intptr_t OldGenerationAllocationLimit(intptr_t old_gen_size) {
const int divisor = FLAG_stress_compaction ? 10 : 1; intptr_t limit = FLAG_stress_compaction ?
intptr_t limit = old_gen_size + old_gen_size / 10 : old_gen_size * 4;
Max(old_gen_size + old_gen_size / divisor, limit = Max(limit, kMinimumOldGenerationAllocationLimit);
kMinimumOldGenerationAllocationLimit);
limit += new_space_.Capacity(); limit += new_space_.Capacity();
intptr_t halfway_to_the_max = (old_gen_size + max_old_generation_size_) / 2; intptr_t halfway_to_the_max = (old_gen_size + max_old_generation_size_) / 2;
return Min(limit, halfway_to_the_max); return Min(limit, halfway_to_the_max);
......
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