RFR: 8307495: Specialize atomic bitset functions for aix-ppc [v6]

Martin Doerr mdoerr at openjdk.org
Fri Oct 10 09:47:27 UTC 2025


On Fri, 10 Oct 2025 09:42:57 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

>> Ah, so we should use "b" consistently for memory addresses.
>
> To be more precise: In this case (lwarx, stwcx, ...), the operand we are using supports R0. So "r" is also fine. But some other functions use lwz, ... which can't use R0.
> So, those with "simple guard" need to use "b", the other ones can also use "r".

Always using "b" should do no harm and avoid copy&paste bugs in the future. So that's probably better?
(We could also usr "cr0" in clobber list, but "cc" should be good enough, too.)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27650#discussion_r2419119497


More information about the hotspot-dev mailing list