Reviewers: ulan,
Description:
Don't shrink new space based on allocation rate in predictable mode.
BUG=
Please review this at https://codereview.chromium.org/1155163003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+1, -1 lines):
M src/heap/heap.cc
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index
09f4cc71278e39c57be57099f4c08aedcef34cbd..7bf3c4bd3e153bdbe75194237888ddaf43b5edc6
100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -4570,7 +4570,7 @@ bool Heap::HasLowAllocationRate(size_t
allocation_rate) {
void Heap::ReduceNewSpaceSize(size_t allocation_rate) {
- if (HasLowAllocationRate(allocation_rate)) {
+ if (!FLAG_predictable && HasLowAllocationRate(allocation_rate)) {
new_space_.Shrink();
UncommitFromSpace();
}
--
--
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/d/optout.