Skip to content
Permalink
Browse files
8249676: [REDO] G1 incorrectly limiting young gen size when using the…
… reserve can result in repeated full gcs

Reviewed-by: sjohanss, kbarrett
  • Loading branch information
Thomas Schatzl committed Sep 15, 2020
1 parent 9ea43a9 commit fa30241ddbbe953b61526bc3c44784198acdd801
Showing with 333 additions and 205 deletions.
  1. +5 −1 src/hotspot/share/gc/g1/g1Analytics.cpp
  2. +284 −159 src/hotspot/share/gc/g1/g1Policy.cpp
  3. +44 −45 src/hotspot/share/gc/g1/g1Policy.hpp
@@ -224,7 +224,11 @@ void G1Analytics::report_rs_length(double rs_length) {
}

double G1Analytics::predict_alloc_rate_ms() const {
return predict_zero_bounded(_alloc_rate_ms_seq);
if (enough_samples_available(_alloc_rate_ms_seq)) {
return predict_zero_bounded(_alloc_rate_ms_seq);
} else {
return 0.0;
}
}

double G1Analytics::predict_concurrent_refine_rate_ms() const {

1 comment on commit fa30241

@bridgekeeper

This comment has been minimized.

Copy link

@bridgekeeper bridgekeeper bot commented on fa30241 Sep 15, 2020

Please sign in to comment.