提交 93b2d011 编写于 作者: D dcherepanov

7011443: ./share/classes/sun/awt/SunToolkit.java needs to avoid spurious wakeup

Reviewed-by: anthony
上级 d36abb1c
...@@ -696,8 +696,10 @@ public abstract class SunToolkit extends Toolkit ...@@ -696,8 +696,10 @@ public abstract class SunToolkit extends Toolkit
synchronized (lock) { synchronized (lock) {
executeOnEventHandlerThread(event); executeOnEventHandlerThread(event);
while(!event.isDispatched()) {
lock.wait(); lock.wait();
} }
}
Throwable eventThrowable = event.getThrowable(); Throwable eventThrowable = event.getThrowable();
if (eventThrowable != null) { if (eventThrowable != null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册