RFR: 8367013: Add Atomic<T> to package/replace idiom of volatile var plus AtomicAccess:: operations
David Holmes
dholmes at openjdk.org
Tue Oct 7 01:13:53 UTC 2025
On Mon, 6 Oct 2025 10:19:52 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:
> A more accurate way to view Atomic::release_store is that the memory synchronization is intrinsically tied to the store operation — not before it, not after it.
It has to be before it in the sense that the store cannot float ahead of the memory synchronization action - otherwise it could be reordered with other stores and that would break things.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27539#issuecomment-3374789698
More information about the hotspot-dev
mailing list