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

Ioi Lam iklam at openjdk.org
Wed Apr 10 18:11:09 UTC 2024


On Tue, 9 Apr 2024 15:06:40 GMT, Thomas Stuefe <stuefe 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

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

Marked as reviewed by iklam (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/18698#pullrequestreview-1992374057


More information about the hotspot-compiler-dev mailing list