mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8335134: Test com/sun/jdi/BreakpointOnClassPrepare.java timeout
Backport-of: 4e8cbf884a
This commit is contained in:
committed by
Vitaly Provodin
parent
8e7498e315
commit
85a0663d45
@@ -104,7 +104,15 @@ public class BreakpointOnClassPrepare extends TestScaffold {
|
||||
|
||||
public void breakpointReached(BreakpointEvent event) {
|
||||
bkptCount++;
|
||||
System.out.println("Got BreakpointEvent: " + bkptCount + " for thread " + event.thread());
|
||||
String threadInfo;
|
||||
try {
|
||||
threadInfo = event.thread().toString();
|
||||
} catch (ObjectCollectedException e) {
|
||||
// It's possible the Thread already terminated and was collected
|
||||
// if the SUSPEND_NONE policy was used.
|
||||
threadInfo = "(thread collected)";
|
||||
}
|
||||
System.out.println("Got BreakpointEvent: " + bkptCount + " for thread " + threadInfo);
|
||||
}
|
||||
|
||||
public void vmDisconnected(VMDisconnectEvent event) {
|
||||
|
||||
Reference in New Issue
Block a user