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

Drop explicit zeroing at instantiation of Atomic* objects

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • None
    • core-libs
    • None
    • b22

      There is never a reason to explicitly instantiate any instance of Atomic* class with its default value, i.e. new AtomicInteger(0) could be replaced with new AtomicInteger() which is faster

            dfuchs Daniel Fuchs
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: