Skip to content

Commit

Permalink
8291650: Add delay to ClassUnloadEventTest before exiting to give tim…
Browse files Browse the repository at this point in the history
…e for JVM to send all events before VMDeath

Reviewed-by: sspitsyn, amenkov
  • Loading branch information
plummercj committed Aug 2, 2022
1 parent af76c0c commit a6564d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/jdk/com/sun/jdi/ClassUnloadEventTest.java
Expand Up @@ -102,6 +102,13 @@ private static void runDebuggee() {
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 {
Expand Down

1 comment on commit a6564d4

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.