RFR: 8329656: assertion failed in MAP_ARCHIVE_MMAP_FAILURE path: Invalid immediate -5 0

Thomas Stuefe stuefe at openjdk.org
Thu Apr 11 05:26:45 UTC 2024


On Wed, 10 Apr 2024 18:07:54 GMT, Ioi Lam <iklam at openjdk.org> wrote:

>> It fixes an embarrassing OOB memory access when rolling the dice to get a random class space location on aarch64.
>> 
>> Thanks to @calvinccheung for finding this bug.
>> 
>> The fix is to make all relevant variables unsigned, thus preventing negative overflow.
>
> LGTM

Thanks @iklam and @calvinccheung !

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

PR Comment: https://git.openjdk.org/jdk/pull/18698#issuecomment-2048947701


More information about the hotspot-compiler-dev mailing list