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
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
- relates to
-
JDK-7192872 java/nio/ByteBuffer/4879883/LimitDirectMemory.sh fails on Windows x64 against jdk 1.4.2
- Closed