changeset 4894:91ede930328c

7149913: [macosx] Deadlock in LWTextComponentPeer Reviewed-by: alexp
author serb
date Wed, 14 Mar 2012 12:31:25 +0400
parents c1a0898b5fc3
children e00e98bc0c0e
files src/macosx/classes/sun/lwawt/LWComponentPeer.java
diffstat 1 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/classes/sun/lwawt/LWComponentPeer.java	Wed Mar 14 12:29:32 2012 +0400
+++ b/src/macosx/classes/sun/lwawt/LWComponentPeer.java	Wed Mar 14 12:31:25 2012 +0400
@@ -213,16 +213,8 @@
             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()));
                 }
             });
         }