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

Test vmTestbase/gc/memory/Nio/Nio.java is failing to allocate all direct buffer memory

XMLWordPrintable

    • 24

      Test: vmTestbase/gc/memory/Nio/Nio.java

      ----------System.out:(1/43)----------
      Allocating all the direct memory: 52428800
      ----------System.err:(12/1058)----------
      gc.memory.Nio.Nio$Fault: Unexpected OOME during the first allocation java.lang.OutOfMemoryError: Cannot reserve 52428800 bytes of direct buffer memory (allocated: 8192, limit: 52428800)
      at gc.memory.Nio.Nio.run(Nio.java:81)
      at gc.memory.Nio.Nio.main(Nio.java:61)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:573)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1576)

      It looks like a recent change has caused 8K to already be allocated.

            bpb Brian Burkhalter
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: