Integrated: 8364650: G1: Use InvalidCSetIndex instead of UINT_MAX for "invalid" sentinel value of young_index_in_cset

Thomas Schatzl tschatzl at openjdk.org
Thu Aug 21 09:22:02 UTC 2025


On Tue, 5 Aug 2025 21:56:43 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> Hi all,
> 
>   please review this small change to use `InvalidCSetIndex` instead of hardcoded `UINT_MAX` for `G1HeapRegion::_young_index_in_cset`. Just reuse the existing value that is already in use for `_index_in_opt_cset`.
> 
> Testing: compilation, gha
> 
> Thanks,
>   Thomas

This pull request has now been integrated.

Changeset: 5ede5b47
Author:    Thomas Schatzl <tschatzl at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/5ede5b47d4291a18acc16833978ded038332cf9c
Stats:     3 lines in 2 files changed: 0 ins; 0 del; 3 mod

8364650: G1: Use InvalidCSetIndex instead of UINT_MAX for "invalid" sentinel value of young_index_in_cset

Reviewed-by: ayang, iwalulya

-------------

PR: https://git.openjdk.org/jdk/pull/26651


More information about the hotspot-gc-dev mailing list