8291650: Add delay to ClassUnloadEventTest before exiting to give time for JVM to send all events before VMDeath

Reviewed-by: sspitsyn, amenkov
This commit is contained in:
Chris Plummer 2022-08-02 21:13:00 +00:00
parent af76c0c199
commit a6564d495b

@ -102,6 +102,13 @@ public class ClassUnloadEventTest {
loader = null;
// Trigger class unloading
ClassUnloadCommon.triggerUnloading();
// Short delay to make sure all ClassUnloadEvents have been sent
// before VMDeathEvent is genareated.
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
}
}
private static void runDebugger() throws Exception {