From 6412600e72aa058bf695719ec350cd1da9ddae88 Mon Sep 17 00:00:00 2001 From: Sergey Bylokhov Date: Thu, 5 Apr 2012 19:22:54 +0400 Subject: [PATCH] 7149913: [macosx] Deadlock in LWTextComponentPeer Reviewed-by: anthony, art --- .../macosx/classes/sun/lwawt/LWComponentPeer.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/jdk/src/macosx/classes/sun/lwawt/LWComponentPeer.java b/jdk/src/macosx/classes/sun/lwawt/LWComponentPeer.java index 86f1f84b131..02040f3a67a 100644 --- a/jdk/src/macosx/classes/sun/lwawt/LWComponentPeer.java +++ b/jdk/src/macosx/classes/sun/lwawt/LWComponentPeer.java @@ -213,16 +213,8 @@ public abstract class LWComponentPeer SwingUtilities3.setDelegateRepaintManager(delegate, new RepaintManager() { @Override public void addDirtyRegion(final JComponent c, final int x, final int y, final int w, final int h) { - if (SunToolkit.isDispatchThreadForAppContext(getTarget())) { - synchronized (getDelegateLock()) { - if (getDelegate().isPaintingForPrint()) { - return; - } - } - } - Rectangle res = SwingUtilities.convertRectangle( - c, new Rectangle(x, y, w, h), getDelegate()); - repaintPeer(res); + repaintPeer(SwingUtilities.convertRectangle( + c, new Rectangle(x, y, w, h), getDelegate())); } }); }