src/solaris/native/sun/awt/awt_UNIXToolkit.c: AWT_LOCK(); XSync(awt_display, False); AWT_UNLOCK();
Looks like X11 is supposed to be protected by AWT_LOCK. src/solaris/classes/sun/awt/UNIXToolkit.java: /** All calls into GTK should be synchronized on this lock */ public static final Object GTK_LOCK = new Object(); It looks like also gtk is protected with a java lock. Mean while looking at java-atk-wrapper code it is using gtk/atk/gdk without unix toolkit lock. But I simple can't remember any specific reason to use locks if opening two separate X display for two threads. Also I can't understand how gdk_open_display can hit a race condition ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1510009 Title: Java 1.8.0_66 is extremely deadlock prone regarding AWT/GTK interaction To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1510009/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs