Integrated: 8309475: Test java/foreign/TestByteBuffer.java fails: a problem with msync (aix)
Tyler Steele
tsteele at openjdk.org
Fri Aug 18 20:14:36 UTC 2023
On Thu, 20 Jul 2023 20:55:36 GMT, Tyler Steele <tsteele at openjdk.org> wrote:
> This change adds additional support to MappedByteBuffer::force which delegates to msync on AIX. Specifically, it checks whether and error with errno set to EINVAL is the cause of a msync call to an address mmapped with the MAP_PRIVATE flag set. If this flag is set, then the msync call EINVAL is expected, and can be ignored as per the Java documentation of the force method.
>
>> In particular, the method has no effect for buffers mapped in read-only or private mapping modes. [1]
>
> Separated into separate file as per recommendation by @AlanBateman.
>
> [1] https://download.java.net/java/early_access/jdk21/docs/api/java.base/java/nio/MappedByteBuffer.html#force()
This pull request has now been integrated.
Changeset: 395fc788
Author: Tyler Steele <tsteele at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/395fc78880a91eeb06a08c1abf6905d580a650c0
Stats: 235 lines in 3 files changed: 210 ins; 25 del; 0 mod
8309475: Test java/foreign/TestByteBuffer.java fails: a problem with msync (aix)
Reviewed-by: mbaesken, alanb, mdoerr
-------------
PR: https://git.openjdk.org/jdk/pull/14964
More information about the nio-dev
mailing list