Skip to content

Commit

Permalink
8335134: Test com/sun/jdi/BreakpointOnClassPrepare.java timeout
Browse files Browse the repository at this point in the history
Backport-of: 4e8cbf884ab1eee9c3110712ab62edc706e948ba
  • Loading branch information
Andrew Lu committed Aug 1, 2024
1 parent 462065b commit e478a23
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/jdk/com/sun/jdi/BreakpointOnClassPrepare.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,15 @@ public static void main(String[] args) throws Exception {

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) {
Expand Down

1 comment on commit e478a23

@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.