RFR: 8312180: (bf) MappedMemoryUtils passes incorrect arguments to msync (aix)

Alan Bateman alanb at openjdk.org
Tue Jul 18 16:18:13 UTC 2023


On Tue, 18 Jul 2023 15:52:53 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> A bit of background: At the start of the JVM port to AIX (before OpenJDK) we wanted to use 64 KB pages, but the "LargePage" semantics used by the JVM were too rigid and too badly abstracted to be usable.
> 
> So we instead "fake" a system page size of 64 KB instead of 4 KB by, basically, letting `os::vm_page_size()` return 64 KB. This works surprisingly well in most cases due to some peculiarities of AIX memory management. The real 4 KB system page size is only observable in a select few corner cases, one of which is this msync coding.

Does this mean that the injected value for Unsafe.PAGE_SIZE is 64k on AIX?

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

PR Comment: https://git.openjdk.org/jdk/pull/14904#issuecomment-1640535348


More information about the nio-dev mailing list