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

(thread) ThreadLocal lock contention

XMLWordPrintable

    • b86
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: