Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8287526

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

    XMLWordPrintable

Details

    • 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 by JDK-8287137, would manifest again after JDK-8287520.

      Attachments

        Issue Links

          Activity

            People

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: