Noticed this while looking at current AlwaysAtomicAccesses uses. This flag is useful to experiment with Valhalla flattening and generically with long atomicity.
See for example here: https://github.com/openjdk/jdk/blob/895a7b64f01dec7248549b127875edcf006457cf/src/hotspot/share/gc/shared/c1/barrierSetC1.cpp#L143 -- we set `is_volatile` when `+AlwaysAtomicAccesses`, so it emit barriers.
See for example here: https://github.com/openjdk/jdk/blob/895a7b64f01dec7248549b127875edcf006457cf/src/hotspot/share/gc/shared/c1/barrierSetC1.cpp#L143 -- we set `is_volatile` when `+AlwaysAtomicAccesses`, so it emit barriers.
- relates to
-
JDK-8033380 Experimental VM flag to enforce access atomicity
- Resolved
- links to
-
Commit(master) openjdk/jdk/afee7405
-
Review(master) openjdk/jdk/22191