Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8138764

In some cases the usage of TreeLock can be replaced by other synchronization

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b92
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        AWTTreeLock is a static lock, which should be used for the cases when we iterates over hierarchy of components, or in the code, which cannot use OtherLock, because it cannot control the order of OtherLock vs AWTTreeLock.

        AWTTreeLock should be used carefully, because if it is used incorrectly it can cause a deadlock. especially if used by the multiple threads via awt library.
        https://www.google.com/search?q=AWTTreeLock+deadlock

          Issue Links

            Activity

            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/c62b791a8960
            User: serb
            Date: 2015-10-21 15:33:25 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/c62b791a8960 User: serb Date: 2015-10-21 15:33:25 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/c62b791a8960
            User: lana
            Date: 2015-11-11 22:11:44 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/c62b791a8960 User: lana Date: 2015-11-11 22:11:44 +0000

              People

              • Assignee:
                serb Sergey Bylokhov
                Reporter:
                serb Sergey Bylokhov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: