Loading... (original) (raw)

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