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

java/nio/Buffer/LimitDirectMemory.sh fails at some env

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 9-repo-jigsaw
    • Fix Version/s: None
    • Component/s: tools

      Description

      java/nio/Buffer/LimitDirectMemory.sh

      This test sometime fails with:

      #section:shell
      ----------messages:(3/132)----------
      command: shell LimitDirectMemory.sh
      reason: User specified action: run shell LimitDirectMemory.sh
      elapsed time (seconds): 0.761
      ----------System.out:(18/1269)----------
      Testing: -XX:MaxDirectMemorySize=10 -cp E:/Users/aurora/sandbox/gresults/testoutput/jdk_nio/JTwork/classes/java/nio/Buffer LimitDirectMemory true 10 1
      Error occurred during initialization of VM
      java.lang.OutOfMemoryError: Direct buffer memory
      at java.nio.Bits.reserveMemory(java.base/Bits.java:667)
      at java.nio.DirectByteBuffer.<init>(java.base/DirectByteBuffer.java:123)
      at java.nio.ByteBuffer.allocateDirect(java.base/ByteBuffer.java:311)
      at jdk.internal.jimage.BasicImageReader.<init>(java.base/BasicImageReader.java:94)
      at jdk.internal.jimage.ImageReader.<init>(java.base/ImageReader.java:62)
      at jdk.internal.jimage.ImageReader.open(java.base/ImageReader.java:76)
      at jdk.internal.jimage.ImageReader.open(java.base/ImageReader.java:89)
      at jdk.internal.jimage.ImageReaderFactory.get(java.base/ImageReaderFactory.java:55)
      at jdk.internal.jimage.ImageReaderFactory.getImageReader(java.base/ImageReaderFactory.java:74)
      at java.lang.module.InstalledModuleFinder.<clinit>(java.base/InstalledModuleFinder.java:88)
      at java.lang.module.ModuleFinder.ofInstalled(java.base/ModuleFinder.java:141)
      at jdk.internal.module.ModuleBootstrap.boot(java.base/ModuleBootstrap.java:93)
      at java.lang.System.initPhase2(java.base/System.java:1911)

      --- failed
      ----------System.err:(0/0)----------

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jlaskey Jim Laskey
                Reporter:
                amlu Amy Lu (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: