RFR: 8312180: (bf) MappedMemoryUtils passes incorrect arguments to msync (aix)
Tyler Steele
tsteele at openjdk.org
Mon Jul 17 22:58:18 UTC 2023
Calls to `msync` on AIX require the length to be a multiple of a specific pagesize which may not be the same as the one returned by `Bits.pageSize()`, as explained in the JBS issue description.
> EINVAL The addr argument is not a multiple of the page size as **returned by the sysconf subroutine using the _SC_PAGE_SIZE value for the Name parameter**, ...
[emphasis added by me]
By adding this as platform dependant code, the correct value of page size is used on AIX. Other Unix platforms should see no change by calling sysconf instead of Bits.pagesize. Windows is unchanged.
-------------
Commit messages:
- Revert "Trigger GHA re-build"
- Trigger GHA re-build
- Minor fixup
- Adds platform dependant pageSize call to MappedMemoryUtils
Changes: https://git.openjdk.org/jdk/pull/14904/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14904&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8312180
Stats: 27 lines in 3 files changed: 26 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/14904.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/14904/head:pull/14904
PR: https://git.openjdk.org/jdk/pull/14904
More information about the nio-dev
mailing list