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

Optimize ConcurrentHashMap.Node

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • None
    • core-libs
    • None

    Description

      ConcurrentHashMap.Node should have a new constructor that does not take a next field. This makes callers slightly more readable, but more importantly ensures that the VM will not perform a useless volatile write of null when it's statically known that the default value of the field suffices.

      Attachments

        Activity

          People

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: