-
Bug
-
Resolution: Fixed
-
P5
-
7u4
-
b13
-
x86
-
windows_7
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2221141 | 8 | Oleg Pekhovskiy | P5 | Resolved | Fixed | b27 |
Method TestPanel.stop() stops secondary thread and waits for the moment it is finished using Thread.wait():
public void stop() {
active = false;
try {
synchronized (sync) {
sync.notify();
}
synchronized (thread) {
thread.wait();
}
} catch (InterruptedException ex) {
}
}
Usually system 'notify' occurs for that wait() and the test exits normally, but on some machines (i.e. stt-96-vmw5) it doesn't happen and the test gets frozen.
To resolve this issue 'waiting' code should be rewritten to guarantee the notification of thread's finishing.
public void stop() {
active = false;
try {
synchronized (sync) {
sync.notify();
}
synchronized (thread) {
thread.wait();
}
} catch (InterruptedException ex) {
}
}
Usually system 'notify' occurs for that wait() and the test exits normally, but on some machines (i.e. stt-96-vmw5) it doesn't happen and the test gets frozen.
To resolve this issue 'waiting' code should be rewritten to guarantee the notification of thread's finishing.
- backported by
-
JDK-2221141 test/java/awt/print/PaintSetEnabledDeadlock/PaintSetEnabledDeadlock.java freezes on exit
-
- Resolved
-
- relates to
-
JDK-7141685 TEST_BUG: some awt tests failed on win 7 with "windows 7 basic" theme
-
- Open
-