Skip to content

Commit

Permalink
Restore use of atPointA in test StopThreadTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
pchilano committed Oct 25, 2024
1 parent 4a9c030 commit 66d5385
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ static void sleep(long millis) {

static void ensureAtPointA(Thread vt) {
// wait while the thread state is not the expected one
while (vt.getState() != Thread.State.BLOCKED) {
while (!atPointA && vt.getState() != Thread.State.BLOCKED) {
sleep(1);
}
}
Expand Down Expand Up @@ -253,6 +253,7 @@ public void run() {
// - when suspended: JVMTI_ERROR_NONE is expected
static void A() {
log("TestTask.A: started");
atPointA = true;
synchronized (lock) {
}
log("TestTask.A: finished");
Expand Down

0 comments on commit 66d5385

Please sign in to comment.