RFR: JDK-8266506: [aix] Treat mapping attempt too close to BRK as a mapping error

Martin Doerr mdoerr at openjdk.java.net
Wed May 5 10:18:51 UTC 2021


On Tue, 4 May 2021 15:28:21 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> On AIX, in os::attempt_reserve_memory_at(), if the user specified a wish address too close to the BRK segment, we silently ignore the wish address and just map anywhere.
> 
> This is not the right behavior since the normal behavior when failing to map to a wish address is to return NULL (see JDK-8266419). Therefore we should return NULL in these cases instead.
> 
> This is a day zero bug.

Looks good. Thanks for fixing. You may want to update the trace message "Will attach anywhere.".

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

Marked as reviewed by mdoerr (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/3859


More information about the hotspot-runtime-dev mailing list