Integrated: 8338814: [PPC64] Unify interface of cmpxchg for different types

Martin Doerr mdoerr at openjdk.org
Tue Aug 27 11:54:09 UTC 2024


On Fri, 23 Aug 2024 09:58:21 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> PPC64 code has very complicated cmpxchg functions in MacroAssembler. We should have at least a unified argument list for the different types and the features should be usable with all types.
> I have also cleaned up the `RegisterOrConstant` functions because they are used by the cmpxchg code.
> 
> One difference in the argument list still exists: `cmpxchgb` and `cmpxchgh` use extra temp registers to support older processors. They should get removed with [JDK-8331859](https://bugs.openjdk.org/browse/JDK-8331859).

This pull request has now been integrated.

Changeset: 2edf574f
Author:    Martin Doerr <mdoerr at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/2edf574f62837678e621e1dfdd8d8a77dbe17ad6
Stats:     123 lines in 9 files changed: 38 ins; 3 del; 82 mod

8338814: [PPC64] Unify interface of cmpxchg for different types

Reviewed-by: lucy

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

PR: https://git.openjdk.org/jdk/pull/20689


More information about the hotspot-dev mailing list