Integrated: 8287526: java/nio/channels/FileChannel/LargeMapTest.java fails on 32-bit systems
Aleksey Shipilev
shade at openjdk.java.net
Tue May 31 13:52:33 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
This pull request has now been integrated.
Changeset: 1b44f6c4
Author: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/1b44f6c483cfb2c8c2f304281654b56fda967719
Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
8287526: java/nio/channels/FileChannel/LargeMapTest.java fails on 32-bit systems
Reviewed-by: alanb, stuefe
-------------
PR: https://git.openjdk.java.net/jdk/pull/8948
More information about the nio-dev
mailing list