--- old/src/hotspot/share/gc/g1/g1Predictions.hpp 2019-11-20 17:16:00.028856600 +0100 +++ new/src/hotspot/share/gc/g1/g1Predictions.hpp 2019-11-20 17:15:59.693846231 +0100 @@ -57,6 +57,14 @@ double get_new_prediction(TruncatedSeq const* seq) const { return seq->davg() + _sigma * stddev_estimate(seq); } + + double get_new_unit_prediction(TruncatedSeq const* seq) const { + return clamp(get_new_prediction(seq), 0.0, 1.0); + } + + double get_new_lower_zero_bound_prediction(TruncatedSeq const* seq) const { + return MAX2(get_new_prediction(seq), 0.0); + } }; #endif // SHARE_GC_G1_G1PREDICTIONS_HPP