Integrated: 8300247: Harden C1 xchg on AArch64 and PPC
Erik Österlund
eosterlund at openjdk.org
Thu Jan 26 14:38:24 UTC 2023
On Wed, 18 Jan 2023 09:00:10 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:
> In the C1 xchg operation, AArch64 and PPC don't deal well with the input register and output register being the same. In some new code, that can happen. This change aims at solving that issue.
>
> As for AArch64, the xchg implementation in the macro assembler already deals well with the input and output register being the same. So we just need to remove an assert. As for the PPC implementation, @TheRealMDoerr has written a variation that uses a temp operand ensuring that they are not the same register.
This pull request has now been integrated.
Changeset: 28545dcf
Author: Erik Österlund <eosterlund at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/28545dcf2b542efe3021a567a198b0794ecf7011
Stats: 11 lines in 3 files changed: 7 ins; 0 del; 4 mod
8300247: Harden C1 xchg on AArch64 and PPC
Co-authored-by: Martin Doerr <mdoerr at openjdk.org>
Reviewed-by: aph, rcastanedalo
-------------
PR: https://git.openjdk.org/jdk/pull/12065
More information about the hotspot-compiler-dev
mailing list