Like java.util.concurrent.atomic.AtomicStampedReference.
It's a generalization of AtomicMarkableRef that supports integer values instead of booleans.
Need to understand the overflow behavior here. It's possible to implement this with bit-stealing, but it might just be too tight (the maximum allowed int value be too small). It's also undesirable to use 16-byte compare-exchange for this.
Like
java.util.concurrent.atomic.AtomicStampedReference.It's a generalization of
AtomicMarkableRefthat supports integer values instead of booleans.Need to understand the overflow behavior here. It's possible to implement this with bit-stealing, but it might just be too tight (the maximum allowed int value be too small). It's also undesirable to use 16-byte compare-exchange for this.