We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e7f53 commit 0f71378Copy full SHA for 0f71378
test/jdk/com/sun/jdi/ClassUnloadEventTest.java
@@ -117,13 +117,8 @@ private static void runDebuggee() {
117
// Trigger class unloading
118
ClassUnloadCommon.triggerUnloading();
119
120
- // Do a short delay to make sure all ClassUnloadEvents have been sent
121
- // before VMDeathEvent is generated.
122
- try {
123
- Thread.sleep(5000);
124
- } catch (InterruptedException e) {
125
- }
126
-
+ // We rely on JVMTI to post all pending ObjectFree events at VM shutdown.
+ // It will trigger the JDWP agent to synthesize expected ClassUnloadEvents events.
127
System.out.println("Exiting debuggee");
128
}
129
0 commit comments