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

Andrew Haley aph at openjdk.org
Fri Oct 3 10:48:46 UTC 2025


On Fri, 3 Oct 2025 09:02:30 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> I agree the similarity between `relaxed_store` and `release_store` isn't ideal. I think unqualified `load` and `store` is worse.

Strong agree.

> > I personally hate the term "relaxed" as it suggests to me a removal of
> > "normal" ordering, when really it means the absence of a stronger ordering.
> 
> I agree that "relaxed" doesn't seem like the greatest of terms. But I think it's the generally accepted term in this area. At least, it's what's used for C/C++ and friends. (But maybe I'm wrong about it being generally accepted? Looking through some papers, I'm not always finding that nomenclature.)

Java (or, at least, the `java.util.concurrent` package) uses the term "opaque" for this meaning.

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

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


More information about the hotspot-dev mailing list