RFR: 8367013: Add Atomic<T> to package/replace idiom of volatile var plus AtomicAccess:: operations

Albert Mingkun Yang ayang at openjdk.org
Fri Oct 3 13:02:49 UTC 2025


On Mon, 29 Sep 2025 11:45:51 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> I'm no sure about putting the word relaxed before the word store in relaxed_store.

I would vote for consistent `<verb>_<strength>` for all APIs, i.e. `store_relaxed` in this case.

> I understand why it was done for release_store

I skimmed through the current code base and can see lots of places that assumes `release` precedes `store`, but I don't get why it has to be this way. Why `store_release` doesn't work? (It matches `load_acquire` in a symmetry, IMO.)

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27539#issuecomment-3365603368


More information about the hotspot-dev mailing list