Skip to content

Commit e501dcc

Browse files
committed
8291650: Add delay to ClassUnloadEventTest before exiting to give time for JVM to send all events before VMDeath
Backport-of: a6564d495b6c2354b82cd49243d3c8793d95f2cb
1 parent 5e39f0f commit e501dcc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/jdk/com/sun/jdi/ClassUnloadEventTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ private static void runDebuggee() {
102102
loader = null;
103103
// Trigger class unloading
104104
ClassUnloadCommon.triggerUnloading();
105+
106+
// Short delay to make sure all ClassUnloadEvents have been sent
107+
// before VMDeathEvent is genareated.
108+
try {
109+
Thread.sleep(5000);
110+
} catch (InterruptedException e) {
111+
}
105112
}
106113

107114
private static void runDebugger() throws Exception {

0 commit comments

Comments
 (0)