mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-20 15:25:27 +00:00
8319379: G1: gc/logging/TestUnifiedLoggingSwitchStress.java crashes after JDK-8318894
Reviewed-by: tschatzl, sjohanss
This commit is contained in:
parent
b5c863b772
commit
8fb94fd4fe
@ -86,6 +86,9 @@ public:
|
||||
double surv_rate_pred(G1Predictions const& predictor, uint age) const {
|
||||
assert(is_valid_age(age), "must be");
|
||||
|
||||
// _stats_arrays_length might not be in sync with _num_added_regions in Cleanup pause.
|
||||
age = MIN2(age, _stats_arrays_length - 1);
|
||||
|
||||
return predictor.predict_in_unit_interval(_surv_rate_predictors[age]);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user