[jmm-dev] bitwise RMW operators, specifically testAndSetBit/BTS

Doug Lea dl at cs.oswego.edu
Wed Jul 20 10:37:31 UTC 2016


On 07/20/2016 04:28 AM, Paul Sandoz wrote:

>
> Perhaps i am asking for trouble bringing this up, but do we require acquire/release variants of getAndAdd and getAndSet? (IMHO we could drop addAndGet).
>

I had noticed this as well. I agree that we ought to do this for the
sake of consistency; adding:

   getAndAddRelease, getAndAddAcquire, getAndSetRelease, getAndSetAcquire


-Doug




More information about the jmm-dev mailing list