Integrated: 8350643: G1: Make loop iteration variable type correspond to limit in G1SurvRateGroup
Thomas Schatzl
tschatzl at openjdk.org
Wed Feb 26 11:34:59 UTC 2025
On Tue, 25 Feb 2025 10:42:32 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:
> Hi all,
>
> in the G1SurvRateGroup class there are three loops that use a `size_t` loop iteration variable that is compared to `uint`s in the condition, causing some implicit narrowing.
>
> Change the loop variables to also use `uints`.
>
> Pointed out by @kimbarrett during review of JDK-8349906.
>
> Testing: local compilation, GHA, checking other loop variables to match type
>
> Thanks,
> Thomas
This pull request has now been integrated.
Changeset: a0dd5654
Author: Thomas Schatzl <tschatzl at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a0dd56543219343306aea99b684b5e2cb04c7d76
Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod
8350643: G1: Make loop iteration variable type correspond to limit in G1SurvRateGroup
Reviewed-by: ayang, kbarrett
-------------
PR: https://git.openjdk.org/jdk/pull/23773
More information about the hotspot-gc-dev
mailing list