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

Test java/nio/Buffer/LimitDirectMemory.sh fails for JDK 6 security merge PIT build

XMLWordPrintable

    • generic
    • generic

      Test name(s):java/nio/Buffer/LimitDirectMemory.sh

      JDK tested: JDK 6 security merge PIT build(http://spbef18.ru.oracle.com:9501/stt/jdk/6u101/secmeg/20150603/), JDK 6u101b14 , 9b65
      OS tested: Linux , Windows
      Reproducible: Always
      Is it platform specific? No
      The is failure reproduced: always
                   
      General description:

      ----------System.out:(32/1810)----------
      Testing: -XX:MaxDirectMemorySize=10 -cp K:/tmp/srini/WinTask3/workDir/classes/java/nio/Buffer LimitDirectMemory true 10 1
      java.lang.OutOfMemoryError: Direct buffer memory
      at java.nio.Bits.reserveMemory(Bits.java:632)
      at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:97)
      at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
      at LimitDirectMemory.main(LimitDirectMemory.java:31)
      OK - Error thrown as expected
      --- passed as expected
      Testing: -XX:MaxDirectMemorySize=1k -cp K:/tmp/srini/WinTask3/workDir/classes/java/nio/Buffer LimitDirectMemory true 1k 100
      java.lang.OutOfMemoryError: Direct buffer memory
      at java.nio.Bits.reserveMemory(Bits.java:632)
      at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:97)
      at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
      at LimitDirectMemory.main(LimitDirectMemory.java:31)
      OK - Error thrown as expected
      --- passed as expected
      Testing: -XX:MaxDirectMemorySize=10m -cp K:/tmp/srini/WinTask3/workDir/classes/java/nio/Buffer LimitDirectMemory true 10m 10m
      java.lang.OutOfMemoryError: Direct buffer memory
      at java.nio.Bits.reserveMemory(Bits.java:632)
      at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:97)
      at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
      at LimitDirectMemory.main(LimitDirectMemory.java:31)
      OK - Error thrown as expected
      --- passed as expected
      Testing: -XX:MaxDirectMemorySize=65M -cp K:/tmp/srini/WinTask3/workDir/classes/java/nio/Buffer LimitDirectMemory false 64M 65M
      OK - Error not thrown
      --- passed as expected
      Testing: -cp K:/tmp/srini/WinTask3/workDir/classes/java/nio/Buffer LimitDirectMemory false 10 1
      OK - Error not thrown
      --- passed as expected
      Testing: -cp K:/tmp/srini/WinTask3/workDir/classes/java/nio/Buffer LimitDirectMemory false 0 DEFAULT
      --- failed

      ----------System.err:(8/458)----------
      Exception in thread "main" java.lang.IllegalArgumentException
      at java.nio.Buffer.<init>(Buffer.java:172)
      at java.nio.ByteBuffer.<init>(ByteBuffer.java:259)
      at java.nio.ByteBuffer.<init>(ByteBuffer.java:267)
      at java.nio.MappedByteBuffer.<init>(MappedByteBuffer.java:64)
      at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:96)
      at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
      at LimitDirectMemory.main(LimitDirectMemory.java:25)

      result: Failed. Execution failed: exit code 1


      test result: Failed. Execution failed: exit code 1

            robm Robert Mckenna
            pchopra Pooja Chopra (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: