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 20:15:46 UTC 2025
On Fri, 3 Oct 2025 15:23:35 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> The naming is intentional, to map onto the behavior.
> release_store() is roughly like release(); store();
By `release()`, do you mean `OrderAccess::release()`? I believe the latter imposes stronger synchronization than `release_store()`. (Similar to atomic_store_explicit vs atomic_thread_fence in cpp.)`
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27539#issuecomment-3367076262
More information about the hotspot-dev
mailing list