< prev index next >
src/hotspot/share/gc/g1/g1HeapSizingPolicy.cpp
Print this page
rev 47452 : [mq]: 8189729-erikd-review
@@ -49,13 +49,13 @@
double recent_gc_overhead = _analytics->recent_avg_pause_time_ratio() * 100.0;
double last_gc_overhead = _analytics->last_pause_time_ratio() * 100.0;
assert(GCTimeRatio > 0,
"we should have set it to a default value set_g1_gc_flags() "
"if a user set it to 0");
- const double gc_overhead_perc = 100.0 * (1.0 / (1.0 + GCTimeRatio));
+ const double gc_overhead_percent = 100.0 * (1.0 / (1.0 + GCTimeRatio));
- double threshold = gc_overhead_perc;
+ double threshold = gc_overhead_percent;
size_t expand_bytes = 0;
// If the heap is at less than half its maximum size, scale the threshold down,
// to a limit of 1. Thus the smaller the heap is, the more likely it is to expand,
// though the scaling code will likely keep the increase small.
@@ -105,13 +105,13 @@
if (committed_bytes < InitialHeapSize / 4) {
expand_bytes = (InitialHeapSize - committed_bytes) / 2;
} else {
double const MinScaleDownFactor = 0.2;
double const MaxScaleUpFactor = 2;
- double const StartScaleDownAt = gc_overhead_perc;
- double const StartScaleUpAt = gc_overhead_perc * 1.5;
- double const ScaleUpRange = gc_overhead_perc * 2.0;
+ double const StartScaleDownAt = gc_overhead_percent;
+ double const StartScaleUpAt = gc_overhead_percent * 1.5;
+ double const ScaleUpRange = gc_overhead_percent * 2.0;
double ratio_delta;
if (filled_history_buffer) {
ratio_delta = recent_gc_overhead - threshold;
} else {
< prev index next >