Details
-
Bug
-
Resolution: Fixed
-
P4
-
19
-
b25
Description
```
$ 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 byJDK-8287137, would manifest again after JDK-8287520.
$ 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
Attachments
Issue Links
- relates to
-
JDK-8286637 (fc) Memory mapped regions bigger than 2GB do not work correctly on Windows
-
- Resolved
-