On Wed, 18 Mar 2026 06:52:43 GMT, Thomas Stuefe <[email protected]> wrote:

> Wait, I see that neither BSD nor MacOS manpages even mention MAP_NORESERVE. 
> But we use it. Now I am confused :-)

We define it to 0 if undefined:
https://github.com/battleblow/jdk/blob/bsd-port/src/hotspot/os/bsd/os_bsd.cpp#L160

MAP_NORESERVE does not seem to be defined by Posix. We could perhaps use 
MAP_NOSYNC on FreeBSD, if I get this right. I don't see anything similar for 
OpenBSD, however.

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

PR Review Comment: 
https://git.openjdk.org/bsd-port/pull/4#discussion_r2952723856

Reply via email to