We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53a4ef2 commit 4ac6934Copy full SHA for 4ac6934
src/hotspot/share/gc/g1/g1Analytics.cpp
@@ -151,7 +151,8 @@ void G1Analytics::report_alloc_rate_ms(double alloc_rate) {
151
152
void G1Analytics::compute_pause_time_ratios(double end_time_sec, double pause_time_ms) {
153
double long_interval_ms = (end_time_sec - oldest_known_gc_end_time_sec()) * 1000.0;
154
- _long_term_pause_time_ratio = _recent_gc_times_ms->sum() / long_interval_ms;
+ double gc_pause_time_ms = _recent_gc_times_ms->sum() - _recent_gc_times_ms->oldest() + pause_time_ms;
155
+ _long_term_pause_time_ratio = gc_pause_time_ms / long_interval_ms;
156
_long_term_pause_time_ratio = clamp(_long_term_pause_time_ratio, 0.0, 1.0);
157
158
double short_interval_ms = (end_time_sec - most_recent_gc_end_time_sec()) * 1000.0;
0 commit comments