mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-07 17:08:53 +00:00
8221472: Fix HandshakeSuspendExitTest
Reviewed-by: dcubed, redestad
This commit is contained in:
parent
28d4630473
commit
06fa31e9bc
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user