-
Bug
-
Resolution: Fixed
-
P5
-
6u21, 7
-
b15
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8018614 | 7u45 | Alan Bateman | P5 | Closed | Fixed | b01 |
JDK-8007981 | 7u40 | Alan Bateman | P5 | Closed | Fixed | b14 |
JDK-8010600 | 7u25 | Alan Bateman | P5 | Closed | Fixed | b03 |
JDK-8008878 | 7u21 | Alan Bateman | P5 | Closed | Fixed | b02 |
In the test
java/lang/Runtime/exec/StreamsSurviveDestroy.java
Thread.sleep(100) is insufficient on slow sparc machines in -Xcomp mode. For instance, on vm-b1600s-1.sfbay the test fails like this (a couple of attempts might be needed to reproduce):
/net/sqenfs-1.sfbay/export1/comp/vm/jdk/hsx/16/pit/b06/jdk7b65/product/solaris-sparcv9/bin/java -d64 -server -Xcomp -XX:-PrintVMOptions StreamsSurviveDestroy
test
EOF
exit: 15
Exception in thread "main" java.lang.Exception: out: Exception thrown
at StreamsSurviveDestroy$Copier.check(StreamsSurviveDestroy.java:93)
at StreamsSurviveDestroy.test(StreamsSurviveDestroy.java:109)
at StreamsSurviveDestroy.main(StreamsSurviveDestroy.java:176)
Caused by: java.io.IOException: Stream Closed
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:241)
at java.lang.UNIXProcess$DeferredCloseInputStream.read(UNIXProcess.java:271)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at StreamsSurviveDestroy$Copier.run(StreamsSurviveDestroy.java:65)
Increasing sleep time to 1000 helps.
java/lang/Runtime/exec/StreamsSurviveDestroy.java
Thread.sleep(100) is insufficient on slow sparc machines in -Xcomp mode. For instance, on vm-b1600s-1.sfbay the test fails like this (a couple of attempts might be needed to reproduce):
/net/sqenfs-1.sfbay/export1/comp/vm/jdk/hsx/16/pit/b06/jdk7b65/product/solaris-sparcv9/bin/java -d64 -server -Xcomp -XX:-PrintVMOptions StreamsSurviveDestroy
test
EOF
exit: 15
Exception in thread "main" java.lang.Exception: out: Exception thrown
at StreamsSurviveDestroy$Copier.check(StreamsSurviveDestroy.java:93)
at StreamsSurviveDestroy.test(StreamsSurviveDestroy.java:109)
at StreamsSurviveDestroy.main(StreamsSurviveDestroy.java:176)
Caused by: java.io.IOException: Stream Closed
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:241)
at java.lang.UNIXProcess$DeferredCloseInputStream.read(UNIXProcess.java:271)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at StreamsSurviveDestroy$Copier.run(StreamsSurviveDestroy.java:65)
Increasing sleep time to 1000 helps.
- backported by
-
JDK-8007981 TEST_BUG: Insufficient sleep time in java/lang/Runtime/exec/StreamsSurviveDestroy.java
-
- Closed
-
-
JDK-8008878 TEST_BUG: Insufficient sleep time in java/lang/Runtime/exec/StreamsSurviveDestroy.java
-
- Closed
-
-
JDK-8010600 TEST_BUG: Insufficient sleep time in java/lang/Runtime/exec/StreamsSurviveDestroy.java
-
- Closed
-
-
JDK-8018614 TEST_BUG: Insufficient sleep time in java/lang/Runtime/exec/StreamsSurviveDestroy.java
-
- Closed
-