From b0c58191f7dd73b80bc1cf51ede0b8faa16fed41 Mon Sep 17 00:00:00 2001 From: serb Date: Thu, 5 Apr 2012 19:22:54 +0400 Subject: [PATCH] 7149913: [macosx] Deadlock in LWTextComponentPeer Reviewed-by: anthony, art --- src/macosx/classes/sun/lwawt/LWComponentPeer.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/macosx/classes/sun/lwawt/LWComponentPeer.java b/src/macosx/classes/sun/lwawt/LWComponentPeer.java index 86f1f84b1..02040f3a6 100644 --- a/src/macosx/classes/sun/lwawt/LWComponentPeer.java +++ b/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())); } }); } -- GitLab