| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 53b819174ffd804a5232fdacc6f0bfbd9e5f6bd0..764d1003e9bfbf8bb25f9c8c31fff90fe5616143 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -4682,11 +4682,11 @@ void Heap::MakeHeapIterable() {
|
|
|
|
|
| bool Heap::HasLowYoungGenerationAllocationRate() {
|
| - const double high_mutator_utilization = 0.995;
|
| + const double high_mutator_utilization = 0.993;
|
| double mutator_speed = static_cast<double>(
|
| tracer()->NewSpaceAllocationThroughputInBytesPerMillisecond());
|
| - double gc_speed =
|
| - static_cast<double>(tracer()->ScavengeSpeedInBytesPerMillisecond());
|
| + double gc_speed = static_cast<double>(
|
| + tracer()->ScavengeSpeedInBytesPerMillisecond(kForSurvivedObjects));
|
| if (mutator_speed == 0 || gc_speed == 0) return false;
|
| double mutator_utilization = gc_speed / (mutator_speed + gc_speed);
|
| return mutator_utilization > high_mutator_utilization;
|
| @@ -4694,7 +4694,7 @@ bool Heap::HasLowYoungGenerationAllocationRate() {
|
|
|
|
|
| bool Heap::HasLowOldGenerationAllocationRate() {
|
| - const double high_mutator_utilization = 0.995;
|
| + const double high_mutator_utilization = 0.993;
|
| double mutator_speed = static_cast<double>(
|
| tracer()->OldGenerationAllocationThroughputInBytesPerMillisecond());
|
| double gc_speed = static_cast<double>(
|
|
|