RFR: 8345659: Fix broken alignment after ReservedSpace splitting in GC code [v2]

Stefan Karlsson stefank at openjdk.org
Wed Dec 11 14:35:39 UTC 2024


On Wed, 11 Dec 2024 11:41:13 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

>> The Serial and Parallel GCs create a ReservedSpace for the total heap and then splits it into a young generation ReservedSpace and an old generation ReservedSpace. The latter operation creates an ReservedSpace with an alignment that doesn't match the base address. This bug is benign because the ReservedSpaces are short-lived and we don't look at the alignment. However, if we are to add stricter checks when creating ReservedSpaces we need to fix this. 
>> 
>> Tested with tier1-3
>
> Stefan Karlsson has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Initialize with GenAlignment for both generations

All good points, Axel.

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

PR Comment: https://git.openjdk.org/jdk/pull/22602#issuecomment-2536168413


More information about the hotspot-gc-dev mailing list