RFR: 8364819: Post-integration cleanups for JDK-8359820 [v7]

Anton Artemov duke at openjdk.org
Tue Aug 12 12:07:53 UTC 2025


On Tue, 12 Aug 2025 09:59:04 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> OK, this looks more straight-forward. I would still prefer to see `Atomic::load` (can be without acquire) for loads on reader side to match the `Atomic` RMW on writer side. This would give us at least coherency for the load.

Okay, I added `Atomic::load()` where necessary to support coherency, although, first of all, it is not the case in a significant number of places in the codebase for `cmpxchg`, and, second of all, I do think it is not needed in **this particular case**. We do not need atomicity here as there is no possible concurrent mutation of that value, as there can be only one such, which **happed before** the read happens.

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

PR Comment: https://git.openjdk.org/jdk/pull/26656#issuecomment-3179037773


More information about the hotspot-dev mailing list