RFR: 8365122: G1: Minor clean up of G1SurvivorRegions [v2]

Sangheon Kim sangheki at openjdk.org
Mon Aug 11 17:03:09 UTC 2025


On Mon, 11 Aug 2025 07:41:32 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

>> Hi all,
>> 
>>   please review this small cleanup around `G1SurvivorRegions`:
>> 
>> - make the `_regions` member a direct member of the class
>> - use the C++ for-each construct for iterating over `_regions` makes the code more readable
>> 
>> Testing: gha
>> 
>> Thanks,
>>   Thomas
>
> Thomas Schatzl has updated the pull request incrementally with one additional commit since the last revision:
> 
>   * add growablearray include

Looks good.

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

Marked as reviewed by sangheki (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26692#pullrequestreview-3106864242


More information about the hotspot-gc-dev mailing list