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

(thread) ThreadLocal lock contention

    Details

    • Subcomponent:
    • Resolved In Build:
      b86
    • CPU:
      generic
    • OS:
      generic

      Description

      The ThreadLocal implementation uses an inefficient lock approach to protecting hash code generation. This causes needless contention overhead. Replacing the lock usage with an atomic get-add provides a clear performance boost for cases where contention is significant.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                psoper Pete Soper (Inactive)
                Reporter:
                psoper Pete Soper (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: