8292879: com/sun/jdi/ClassUnloadEventTest.java failed due to classes not unloading
Reviewed-by: dholmes, coleenp, sspitsyn
This commit is contained in:
parent
fe7a4617fe
commit
6a266c4de1
@ -105,11 +105,20 @@ public class ClassUnloadEventTest {
|
||||
}
|
||||
}
|
||||
loader = null;
|
||||
|
||||
// Do a short delay to make sure that the debug agent is done processing all
|
||||
// ClassPrepare events. Otherwise the debug agent might still be holding on to
|
||||
// a reference to a class, which will prevent it from unloading during the GC.
|
||||
try {
|
||||
Thread.sleep(5000);
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
|
||||
// Trigger class unloading
|
||||
ClassUnloadCommon.triggerUnloading();
|
||||
|
||||
// Short delay to make sure all ClassUnloadEvents have been sent
|
||||
// before VMDeathEvent is genareated.
|
||||
// Do a short delay to make sure all ClassUnloadEvents have been sent
|
||||
// before VMDeathEvent is generated.
|
||||
try {
|
||||
Thread.sleep(5000);
|
||||
} catch (InterruptedException e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user