Skip to content

Commit

Permalink
8335134: Test com/sun/jdi/BreakpointOnClassPrepare.java timeout
Browse files Browse the repository at this point in the history
Reviewed-by: dholmes
Backport-of: 4e8cbf8
  • Loading branch information
plummercj committed Jul 1, 2024
1 parent 4410cdc commit 9d744b0
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 9d744b0

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