RFR: 8374878: Add Atomic<T>::compare_set [v2]

Aleksey Shipilev shade at openjdk.org
Fri Jan 9 17:55:22 UTC 2026


On Fri, 9 Jan 2026 12:48:08 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> Thanks. For non-translated version, I agree with the simplification.
>> 
>> For translated case: I actually thought it is a good thing to avoid calling `recover()` on return value, because it did not need to? Does it save anything, really?
>
> I missed that detail about the translated case, and agree with that rationale.
> 
> Note that `decay` and `recover` are typically type interpretation conversions,
> probably with no code generation involved. But that doesn't change the
> conceptual argument for the current proposed code.

Non-translated version updated.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29135#discussion_r2677085854


More information about the hotspot-dev mailing list