Single byte Atomic::cmpxchg implementation
Andrew Haley
aph at redhat.com
Thu Sep 11 13:49:13 UTC 2014
On 09/11/2014 02:09 PM, David Holmes wrote:
> 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".
Mmm. I understand that object-oriented programming supports that
kind of thing. :-)
Andrew.
More information about the hotspot-dev
mailing list