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

Drop explicit zeroing at instantiation of Atomic* objects

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: