RFR: 8287526: java/nio/channels/FileChannel/LargeMapTest.java fails on 32-bit systems

Aleksey Shipilev shade at openjdk.java.net
Tue May 31 13:52:32 UTC 2022


On Mon, 30 May 2022 14:30:44 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> $ 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

Thanks for reviews!

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

PR: https://git.openjdk.java.net/jdk/pull/8948


More information about the nio-dev mailing list