RFR: 8368303: AlwaysAtomicAccesses is excessively strict [v2]
Andrew Haley
aph at openjdk.org
Mon Oct 6 13:06:32 UTC 2025
On Mon, 6 Oct 2025 08:55:06 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> This is a good compromise.
>
> At the risk of dragging it ever further, I think we can make it ever crisper by catching the fact we are going for `volatile_field_(load|store)` either for proper volatile, or because we wanted to force atomicity.
Mmm yes, good point. Done.
> It looks like we really want to push the `membar()`-s down to `LIRGenerator`, though. Especially as AArch64 emits more membars on top:
Yes, that's WIP, waiting for this patch.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27432#issuecomment-3371519513
More information about the hotspot-dev
mailing list