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

(thread) synchronization bottleneck when constructing Thread subclasses

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 7
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b50
    • CPU:
      generic
    • OS:
      generic

      Description

      The global synchronization on Thread.subclassAudits at Thread construction time has been discussed as a bottleneck:

      http://cs.oswego.edu/pipermail/concurrency-interest/2009-February/005839.html

      The implementation approach for this cache of subclass audits matches the once-similar implementations in ObjectInputStream and ObjectOutputStream, but since the 5056445 fix in JDKs 5.0u7 and 6, those classes were changed to use a ConcurrentHashMap (with weakly referenced Class keys) instead-- Thread should probably be changed similarly.

        Attachments

          Activity

            People

            Assignee:
            chegar Chris Hegarty
            Reporter:
            peterjones Peter Jones
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: