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

Avoid unnecessary volatile write on new AtomicBoolean(false)

    XMLWordPrintable

Details

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

    Description

      new AtomicBoolean(boolean) can be optimized by avoiding the volatile write in case false is passed.

      Attachments

        Issue Links

          Activity

            People

              rriggs Roger Riggs
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: