< prev index next >

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

Print this page
rev 59792 : imported patch 8244603-sjohanss-review

*** 222,232 **** --- 222,236 ---- void G1Analytics::report_rs_length(double rs_length) { _rs_length_seq->add(rs_length); } double G1Analytics::predict_alloc_rate_ms() const { + 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 { return predict_zero_bounded(_concurrent_refine_rate_ms_seq); }
< prev index next >