Test
com/sun/jdi/RunToExit.java
failed with timeout during weekly for JDK 6u5 b04, log: http://gtee.sfbay/gtee2.0/results/JDK6UR/PROMOTION/VM/6u5/b04/071003044510/vm/cinnabar/client/mixed/vm-cinnabar_client_mixed_JDI_REGRESSION2007-10-03-04-53-41/com/sun/jdi/RunToExit.jtr
I see several issues in the RunToExit.java which can cause test failure:
- method RunToExit.main contains following code:
synchronized(locker) {
locker.wait();
}
Here wait() is called outside the loop, so possible case when notify() will be called before wait() was called -> test will hang.
- another problem in RunToExit.main:
VirtualMachine vm = conn.attach(conn_args);
vm.eventRequestManager().deleteAllBreakpoints();
vm.resume();
Test doesn't wait for VMStartEvent before call vm.resume(), this also can cause test hanging.