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

Optimize atomic accumulators using VarHandle getAndSet

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:
      None

      Description

      Various methods such as LongAdder.sumThenReset can be optimized to do one atomic operation instead of two using VarHandle.getAndSet

      http://concurrency.markmail.org/thread/nurbw4vg7vdo5wbh

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: