RFR: 8297445: PPC64: Represent Registers as values

Matthias Baesken mbaesken at openjdk.org
Wed Nov 23 12:01:23 UTC 2022


On Tue, 22 Nov 2022 18:10:42 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> The recent Register implementation uses wild pointer (including null pointer) dereferences which exhibit undefined behavior. We should migrate away from pointer-based representation of Register values as it was done for x86 ([JDK-8292153](https://bugs.openjdk.org/browse/JDK-8292153)). Problems exist when trying to build with GCC 11 ([JDK-8297426](https://bugs.openjdk.org/browse/JDK-8297426)).
> Note: Implicit conversion from `intptr_t` to `RegisterOrConstant` is no longer supported. That's why I had to replace some `add` instructions.

Looks good to me and fixes the issue I reported (https://bugs.openjdk.org/browse/JDK-8297426).
You might want to check the SAP copyright header lines in some of the files.

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

Marked as reviewed by mbaesken (Reviewer).

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


More information about the hotspot-dev mailing list