RFR: 8350758: G1: Use actual last prediction in accumulated survivor rate prediction too
Albert Mingkun Yang
ayang at openjdk.org
Thu Feb 27 10:59:52 UTC 2025
On Wed, 26 Feb 2025 11:51:31 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:
> Hi all,
>
> please review this fix to recent JDK-8349906 to use the current
> survivor rate in the accumulated survivor rate for initializing newly allocated entries as well.
>
> Testing: gha
>
> Thanks,
> Thomas
src/hotspot/share/gc/g1/g1SurvRateGroup.cpp line 76:
> 74: if (i == 0) {
> 75: _surv_rate_predictors[i]->add(InitialSurvivorRate);
> 76: _accum_surv_rate_pred[i] = 0.0;
Should this be updated as well?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23795#discussion_r1973350393
More information about the hotspot-gc-dev
mailing list