(S) RFR: 8157904: Atomic::cmpxchg for jbyte is missing a fence on initial failure

Andrew Haley aph at redhat.com
Wed Aug 24 07:36:29 UTC 2016


On 22/08/16 08:54, David Holmes wrote:
> An earlier code review noticed that the default shared implementation of 
> Atomic::cmpxchg(jbyte*) was missing the required post-memory-barrier in 
> case of an initial failure:

Just to satisfy my curiosity, why is the post-memory-barrier in
case of an initial failure required?  Is there some specification
somewhere that I can refer to?

Thanks,

Andrew.



More information about the hotspot-runtime-dev mailing list