On 08/19/2016 09:31 AM, Aleksey Shipilev wrote: > Now it might be cleaner to ditch Java version from Unsafe, and make > native entry points like Unsafe_CompareAnd{Exchange,Swap}{Byte,Short} > which would call relevant Atomic::cmpxchg-s. ...or not. There is no Atomic::cmpxchg(jshort), argh. Thanks, -Aleksey