<AWT Dev> [9] Review request for 8078606: Deadlock in awt clipboard

Anton Nashatyrev anton.nashatyrev at oracle.com
Fri May 8 16:08:45 UTC 2015

     could you please review the following fix:

fix: http://cr.openjdk.java.net/~anashaty/8078606/webrev.00/ 
bug: https://bugs.openjdk.java.net/browse/JDK-8078606

     Problem: XClipboard sometimes deadlocked

     Reason: XClipboard.registerClipboardViewerChecked acquires 
XCliboard lock first, then tries to acquire AWTLock (within the 
XWindow.getXAWTRootWindow() call)

     Fix: reverse the order of acquiring locks. Additionally eliminate 
AWTLock when accessing XRootWindow singleton.


More information about the awt-dev mailing list