RFR: 8261492: Shenandoah: reconsider forwardee accesses memory ordering [v2]
Andrew Haley
aph at redhat.com
Wed Jun 23 09:35:44 UTC 2021
On 6/23/21 10:22 AM, Andrew Haley wrote:
> On 2/15/21 2:06 PM, Andrew Haley wrote:
>> On 15/02/2021 12:00, Martin Doerr wrote:
>>> I'd prefer using load-consume with comment in assembly code and acquire in C++ code. That would be consistent with other code. But that's just my opinion. I'll leave the aarch64 maintainers free to decide.
>>
>> That sounds right to me too. One day we'll get memory_order_consume
>> for HotSpot C++ code, but until then acquire will have to do.
>
> Sorry, I missed this. Is it just acquire and release you need?
Just to be clear: in a CAS you can have all 4 combinations: none,
acq, rel, acq_rel. I don't want to populate all possibilities if they
won't be used.
--
Andrew Haley (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the hotspot-dev
mailing list