Skip to content

Commit bba948f

Browse files
author
Thomas Schatzl
committed
8253411: [BACKOUT] [REDO] G1 incorrectly limiting young gen size when using the reserve can result in repeated full gcs
Reviewed-by: kbarrett, sjohanss
1 parent 955c2e6 commit bba948f

File tree

3 files changed

+205
-333
lines changed

3 files changed

+205
-333
lines changed

src/hotspot/share/gc/g1/g1Analytics.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,7 @@ void G1Analytics::report_rs_length(double rs_length) {
225225
}
226226

227227
double G1Analytics::predict_alloc_rate_ms() const {
228-
if (enough_samples_available(_alloc_rate_ms_seq)) {
229-
return predict_zero_bounded(_alloc_rate_ms_seq);
230-
} else {
231-
return 0.0;
232-
}
228+
return predict_zero_bounded(_alloc_rate_ms_seq);
233229
}
234230

235231
double G1Analytics::predict_concurrent_refine_rate_ms() const {

0 commit comments

Comments
 (0)