8221472: Fix HandshakeSuspendExitTest

Reviewed-by: dcubed, redestad
This commit is contained in:
Robbin Ehn 2019-03-26 14:49:54 +01:00
parent 28d4630473
commit 06fa31e9bc

View File

@ -42,9 +42,9 @@ public class HandshakeSuspendExitTest implements Runnable {
while (!_exit_now) {
// Leave last 2 threads running.
for (int i = 0; i < _suspend_threads.length - 2; i++) {
if (Thread.currentThread() != thr) {
thr.suspend();
thr.resume();
if (Thread.currentThread() != _suspend_threads[i]) {
_suspend_threads[i].suspend();
_suspend_threads[i].resume();
}
}
}