RFR: 8287526: java/nio/channels/FileChannel/LargeMapTest.java fails on 32-bit systems
Aleksey Shipilev
shade at openjdk.java.net
Mon May 30 14:40:15 UTC 2022
$ CONF=linux-x86-server-fastdebug make images run-test TEST=java/nio/channels/FileChannel/LargeMapTest.java
STDOUT:
32
i386
19-internal
STDERR:
java.io.IOException: Map failed
at java.base/sun.nio.ch.FileChannelImpl.mapInternal(FileChannelImpl.java:1322)
at java.base/sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:1221)
at LargeMapTest.main(LargeMapTest.java:66)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:1585)
Caused by: java.lang.OutOfMemoryError: Map failed
at java.base/sun.nio.ch.FileChannelImpl.map0(Native Method)
at java.base/sun.nio.ch.FileChannelImpl.mapInternal(FileChannelImpl.java:1319)
... 6 more
I think we cannot assume we would be able to map >4G on 32-bit system.
Currently obscured by [JDK-8287137](https://bugs.openjdk.java.net/browse/JDK-8287137), would manifest again after [JDK-8287520](https://bugs.openjdk.java.net/browse/JDK-8287520).
Additional testing:
- [x] Linux x86_64 fastdebug, still passes
- [x] Linux x86_32 fastdebug, still skipped, even after taking off the problem list
-------------
Commit messages:
- Fix
Changes: https://git.openjdk.java.net/jdk/pull/8948/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8948&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8287526
Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/8948.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/8948/head:pull/8948
PR: https://git.openjdk.java.net/jdk/pull/8948
More information about the nio-dev
mailing list