Reviewers: Michael Starzinger,
Description:
Increase old generation space significantly if we observe a high promotion
rate.
BUG=
Please review this at https://codereview.chromium.org/15104004/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/heap.h
Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index
f1f9c36040fe9490ce62beb24d458560312737f3..e29fb53b4d6e7ce63ba16b04aa4a80d00ce90cd2
100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -1585,6 +1585,9 @@ class Heap {
intptr_t limit =
Max(old_gen_size + old_gen_size / divisor, kMinimumPromotionLimit);
limit += new_space_.Capacity();
+ if (IsHighSurvivalRate() && IsStableOrIncreasingSurvivalTrend()) {
+ limit *= 2;
+ }
intptr_t halfway_to_the_max = (old_gen_size +
max_old_generation_size_) / 2;
return Min(limit, halfway_to_the_max);
}
@@ -1595,6 +1598,9 @@ class Heap {
intptr_t limit =
Max(old_gen_size + old_gen_size / divisor,
kMinimumAllocationLimit);
limit += new_space_.Capacity();
+ if (IsHighSurvivalRate() && IsStableOrIncreasingSurvivalTrend()) {
+ limit *= 2;
+ }
intptr_t halfway_to_the_max = (old_gen_size +
max_old_generation_size_) / 2;
return Min(limit, halfway_to_the_max);
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.