Don't shrink new space based on allocation rate in predictable mode.
authorhpayer <hpayer@chromium.org>
Tue, 26 May 2015 10:14:13 +0000 (03:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 26 May 2015 10:14:24 +0000 (10:14 +0000)
BUG=

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

Cr-Commit-Position: refs/heads/master@{#28618}

src/heap/heap.cc

index 09f4cc7..7bf3c4b 100644 (file)
@@ -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();
   }