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

Kim Barrett kbarrett at openjdk.org
Tue Aug 12 07:37:14 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 kbarrett (Reviewer).

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


More information about the hotspot-gc-dev mailing list