Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8305670 Performance regression in LockSupport.unpark with lots of idle threads
  3. JDK-8307068

store a JavaThread* in the java.lang.Thread object after the JavaThread* is added to the main ThreadsList

    XMLWordPrintable

Details

    • b23
    • generic
    • generic

    Backports

      Description

        During the lengthy discussions and analysis of the following fix:

            JDK-8305670 Performance regression in LockSupport.unpark with lots of idle threads

        we concluded that a JavaThread* should be stored in the java.lang.Thread
        object after the JavaThread* has been added to the main ThreadsList.
        Publishing that JavaThread* early can lead to situations where the
        JavaThread* can be accessed/used before it is protected by a
        ThreadsListHandle which is not safe.

        Attachments

          Issue Links

            Activity

              People

                dcubed Daniel Daugherty
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: