Single byte Atomic::cmpxchg implementation
david.holmes at oracle.com
Thu Sep 11 13:09:14 UTC 2014
On 11/09/2014 8:59 PM, Andrew Haley wrote:
> On 09/11/2014 11:34 AM, David Holmes wrote:
>> For things like Atomic::* the definitions are in platform specific
>> files so you should be able to use whatever mechanism you want and
>> require whatever minimal compiler version is needed.
> But they're not: Atomic::cmpxchg(jbyte seems to be defined in common
> code. If it was defined in a platform-specific file there would be no
> problem for us to discuss in this thread.
Sorry - yes there is a seemingly arbitrary split between shared and
platform-specific variants. It's fine to have generic shared approaches
but there really needs to be a way to allow platform specific "overrides".
More information about the hotspot-dev