-
Backport
-
Resolution: Fixed
-
P4
-
None
-
b02
-
Verified
The modification of test also is necessary for 150_j2se train
Test failed on 64 JDK but passed on 32 bit.
#-----testresult-----
description=file:///D:/JQA/tests/150/1.5.0_j2se/test/java/nio/Buffer/LimitDirectMemory.sh
end=Mon May 22 16:22:10 MSD 2006
environment=regtest
execStatus=Failed. Execution failed: exit code 1
javatestOS=Windows 2003 5.2 (amd64)
javatestVersion=2.1.6
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages build compile shell
start=Mon May 22 16:22:06 MSD 2006
status=Failed. Execution failed: exit code 1
test=java/nio/Buffer/LimitDirectMemory.sh
work=E:\\regression\\150u8b1x64\\pass7-j2se-u7b3\\work\\java\\nio\\Buffer
#section:script_messages
----------messages:(4/207)----------
JDK under test: (D:/JDK/jdk1.5.0_07b3x64)
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_07-b03, mixed mode)
#section:build
----------messages:(3/127)----------
command: build LimitDirectMemory
reason: User specified action: run build LimitDirectMemory
elapsed time (seconds): 0.766
result: Passed. Compilation successful
#section:compile
----------messages:(3/182)*----------
command: compile D:\\JQA\\tests\\150\\1.5.0_j2se\\test\\java\\nio\\Buffer\\LimitDirectMemory.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.766
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful
#section:shell
----------messages:(3/133)----------
command: shell LimitDirectMemory.sh
reason: User specified action: run shell LimitDirectMemory.sh
elapsed time (seconds): 2.703
----------System.out:(57/2813)*----------
Testing: -XX:MaxDirectMemorySize=10 -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workjava.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:632)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:95)
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 E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workjava.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:632)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:95)
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 E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workjava.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:632)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:95)
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 E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workOK - Error not thrown
--- passed as expected
Testing: -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workOK - Error not thrown
--- passed as expected
Testing: -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workOK - Error not thrown
--- passed as expected
Testing: -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workjava.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:632)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:95)
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=0 -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workjava.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:632)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:95)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
at LimitDirectMemory.main(LimitDirectMemory.java:31)
OK - Error thrown as expected
--- passed as expected
Testing: -Dsun.nio.MaxDirectMemorySize=1K -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workOK - Error not thrown
--- passed as expected
Testing: -XX:MaxDirectMemorySize=42g -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workOK - Error not thrown
--- passed as expected
Testing: -XX:MaxDirectMemorySize=42g -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\work--- failed
----------System.err:(2/149)----------
Exception in thread "main" java.lang.RuntimeException: OutOfMemoryError not thrown: 86245376
at LimitDirectMemory.main(LimitDirectMemory.java:32)
result: Failed. Execution failed: exit code 1
test result: Failed. Execution failed: exit code 1
Test failed on 64 JDK but passed on 32 bit.
#-----testresult-----
description=file:///D:/JQA/tests/150/1.5.0_j2se/test/java/nio/Buffer/LimitDirectMemory.sh
end=Mon May 22 16:22:10 MSD 2006
environment=regtest
execStatus=Failed. Execution failed: exit code 1
javatestOS=Windows 2003 5.2 (amd64)
javatestVersion=2.1.6
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages build compile shell
start=Mon May 22 16:22:06 MSD 2006
status=Failed. Execution failed: exit code 1
test=java/nio/Buffer/LimitDirectMemory.sh
work=E:\\regression\\150u8b1x64\\pass7-j2se-u7b3\\work\\java\\nio\\Buffer
#section:script_messages
----------messages:(4/207)----------
JDK under test: (D:/JDK/jdk1.5.0_07b3x64)
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_07-b03, mixed mode)
#section:build
----------messages:(3/127)----------
command: build LimitDirectMemory
reason: User specified action: run build LimitDirectMemory
elapsed time (seconds): 0.766
result: Passed. Compilation successful
#section:compile
----------messages:(3/182)*----------
command: compile D:\\JQA\\tests\\150\\1.5.0_j2se\\test\\java\\nio\\Buffer\\LimitDirectMemory.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.766
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful
#section:shell
----------messages:(3/133)----------
command: shell LimitDirectMemory.sh
reason: User specified action: run shell LimitDirectMemory.sh
elapsed time (seconds): 2.703
----------System.out:(57/2813)*----------
Testing: -XX:MaxDirectMemorySize=10 -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workjava.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:632)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:95)
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 E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workjava.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:632)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:95)
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 E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workjava.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:632)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:95)
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 E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workOK - Error not thrown
--- passed as expected
Testing: -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workOK - Error not thrown
--- passed as expected
Testing: -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workOK - Error not thrown
--- passed as expected
Testing: -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workjava.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:632)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:95)
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=0 -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workjava.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:632)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:95)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
at LimitDirectMemory.main(LimitDirectMemory.java:31)
OK - Error thrown as expected
--- passed as expected
Testing: -Dsun.nio.MaxDirectMemorySize=1K -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workOK - Error not thrown
--- passed as expected
Testing: -XX:MaxDirectMemorySize=42g -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\workOK - Error not thrown
--- passed as expected
Testing: -XX:MaxDirectMemorySize=42g -cp E:
egression\\150u8b1x64\\pass7-j2se-u7b3\\work--- failed
----------System.err:(2/149)----------
Exception in thread "main" java.lang.RuntimeException: OutOfMemoryError not thrown: 86245376
at LimitDirectMemory.main(LimitDirectMemory.java:32)
result: Failed. Execution failed: exit code 1
test result: Failed. Execution failed: exit code 1
- backport of
-
JDK-6400584 test java/nio/Buffer/LimitDirectMemory.sh has failed with 64 bit JDK on Windows
-
- Closed
-