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

Optimize ConcurrentHashMap.Node

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: