RFR 8067241 DeadlockTest.java failed with negative timeout value
shanliang
shanliang.jiang at oracle.com
Fri Dec 12 07:33:49 UTC 2014
Hi,
It is a test bug, it is not correct:
while(!wb.done || timeToWait > 0) {
it should be:
while(!wb.done && timeToWait > 0) {
|| should be changed to &&
Another issue is that the waiting time could be not enough (final long
timeout = 2000).
The fix is to remove the waiting time specified in the test, the timeout
of test harness will be used as the max waiting time.
bug: https://bugs.openjdk.java.net/browse/JDK-8067241
webrev: http://cr.openjdk.java.net/~sjiang/JDK-8067241/00/
thanks,
Shanliang
More information about the serviceability-dev
mailing list