RFR: 8222828: vmTestbase/nsk/jdi/BScenarios/multithrd/tc02x004/TestDescription.java failed

Daniil Titov daniil.x.titov at oracle.com
Fri Jun 7 18:47:06 UTC 2019


Please review the change that fixes an intermittent failure of the test when it is run with Graal on.

The test starts a debuggee and sets the method entry breakpoint for tc02x004aClass1 class that has only constructor defined.
The debuggee starts 3 threads and each of them creates a new instance of tc02x004aClass1 class. The test waits for receiving 
3 method entry events (posted when the constructor of tc02x004aClass1 is invoked) during a specific amount of time.

The problem here is that with Graal on it takes more time for the test to run and occasionally the test stops listening for events 
before all method entry events are delivered. 

The fix ensures that the time the test waits for receiving method entry events is adjusted for test.timeout.factor factor.

The fix also makes the test waiting till the debuggee terminates before exiting.

Webrev: http://cr.openjdk.java.net/~dtitov/8222828/webrev.01
Bug: https://bugs.openjdk.java.net/browse/JDK-8222828 

Thanks!
-Daniil




More information about the serviceability-dev mailing list