RFR: 8368303: AlwaysAtomicAccesses is excessively strict
Dean Long
dlong at openjdk.org
Wed Sep 24 19:35:19 UTC 2025
On Mon, 22 Sep 2025 16:51:08 GMT, Andrew Haley <aph at openjdk.org> wrote:
> In C1, the experimental flag `AlwaysAtomicAccesses` treats accesses to all fields as if they were volatile fields. This is correct but excessive: we only need single-copy atomicity to satisfy `AlwaysAtomicAccesses`.
>
> We need this in order to allow progress on JDK-8365147.
It does seem like access_is_atomic() could be moved to platform-specific code, but which platforms would need a different implementation?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27432#issuecomment-3330373806
More information about the hotspot-dev
mailing list