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
