-
Enhancement
-
Resolution: Fixed
-
P4
-
21
-
b24
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8310000 | 17.0.9 | Matthias Baesken | P4 | Resolved | Fixed | b01 |
MappedMemoryUtils.c can generate exceptions like those :
java.io.UncheckedIOException: java.io.IOException: Invalid argument
at java.base/java.nio.MappedMemoryUtils.force(MappedMemoryUtils.java:105)
at java.base/java.nio.Buffer$2.force(Buffer.java:890)
at java.base/jdk.internal.misc.ScopedMemoryAccess.forceInternal(ScopedMemoryAccess.java:317)
at java.base/jdk.internal.misc.ScopedMemoryAccess.force(ScopedMemoryAccess.java:305)
at java.base/jdk.internal.foreign.MappedMemorySegmentImpl.force(MappedMemorySegmentImpl.java:92)
at TestByteBuffer.testMappedSegmentAsByteBuffer(TestByteBuffer.java:327)
(we see this for example on AIX); there is some room for improvement, at least the info should be added that msync failed and caused this exception.
java.io.UncheckedIOException: java.io.IOException: Invalid argument
at java.base/java.nio.MappedMemoryUtils.force(MappedMemoryUtils.java:105)
at java.base/java.nio.Buffer$2.force(Buffer.java:890)
at java.base/jdk.internal.misc.ScopedMemoryAccess.forceInternal(ScopedMemoryAccess.java:317)
at java.base/jdk.internal.misc.ScopedMemoryAccess.force(ScopedMemoryAccess.java:305)
at java.base/jdk.internal.foreign.MappedMemorySegmentImpl.force(MappedMemorySegmentImpl.java:92)
at TestByteBuffer.testMappedSegmentAsByteBuffer(TestByteBuffer.java:327)
(we see this for example on AIX); there is some room for improvement, at least the info should be added that msync failed and caused this exception.
- backported by
-
JDK-8310000 enhance exceptions in MappedMemoryUtils.c
- Resolved