Navigation Menu

Skip to content

Commit

Permalink
8253197: vmTestbase/nsk/jvmti/StopThread/stopthrd007/TestDescription.…
Browse files Browse the repository at this point in the history
…java fails with "ERROR: DebuggeeSleepingThread: ThreadDeath lost"

Backport-of: 9573022978bfeff55b51fa6f30027f59a0783d31
  • Loading branch information
GoeLin committed Jan 26, 2022
1 parent e279d07 commit 9700ded
Showing 1 changed file with 4 additions and 4 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -170,8 +170,8 @@ public stopthrd007ThreadRunning(String name) {
}

public void run() {
stopthrd007.startingBarrier.unlock();
try {
stopthrd007.startingBarrier.unlock();
int i = 0;
int n = 1000;
while (flag) {
Expand Down Expand Up @@ -216,8 +216,8 @@ public stopthrd007ThreadWaiting(String name, long tout) {
}

public synchronized void run() {
stopthrd007.startingBarrier.unlock();
try {
stopthrd007.startingBarrier.unlock();
wait(timeout);
status = 1;
} catch (ThreadDeath t) {
Expand Down Expand Up @@ -249,8 +249,8 @@ public stopthrd007ThreadSleeping(String name, long tout) {
}

public void run() {
stopthrd007.startingBarrier.unlock();
try {
stopthrd007.startingBarrier.unlock();
sleep(timeout);
status = 1;
} catch (ThreadDeath t) {
Expand Down

1 comment on commit 9700ded

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