From 10c383a4be1ee140d5387bb0448ffb160e97896d Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 17 Jul 2004 08:52:13 +0000 Subject: [PATCH] InvocationEvent.java (dispatch): Synchronize on notifier object before calling notifyAll(). 2004-07-17 Mark Wielaard * java/awt/event/InvocationEvent.java (dispatch): Synchronize on notifier object before calling notifyAll(). From-SVN: r84859 --- libjava/ChangeLog | 5 +++++ libjava/java/awt/event/InvocationEvent.java | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index e9a2a50cdce..cbb023adcc6 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-07-17 Mark Wielaard + + * java/awt/event/InvocationEvent.java (dispatch): Synchronize + on notifier object before calling notifyAll(). + 2004-07-17 Michael Koch * gnu/java/nio/channels/FileChannelImpl.java diff --git a/libjava/java/awt/event/InvocationEvent.java b/libjava/java/awt/event/InvocationEvent.java index fbf7b5e9379..76d4a558244 100644 --- a/libjava/java/awt/event/InvocationEvent.java +++ b/libjava/java/awt/event/InvocationEvent.java @@ -189,8 +189,13 @@ public class InvocationEvent extends AWTEvent implements ActiveEvent } else runnable.run(); - if (notifier != null) - notifier.notifyAll(); + + Object o = notifier; + if (o != null) + synchronized(o) + { + o.notifyAll(); + } } /** -- 2.30.2