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

          Attachments

            Issue Links

              Activity

                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: