RFR: 8286711: AArch64: serviceability agent tests fail with PAC enabled
David Holmes
dholmes at openjdk.java.net
Mon May 23 02:17:48 UTC 2022
On Fri, 20 May 2022 15:52:04 GMT, Nick Gasson <ngasson at openjdk.org> wrote:
> When the VM is run with `-XX:UseBranchProtection=pac-ret` on a supported CPU, the upper bits of the saved link register contain a "pointer authentication code" which must be checked and removed by a special instruction before a function returns. The serviceability agent is unaware of this and so sees garbled PC values when walking the stack. This patch just masks out the PAC bits from the sender PC after reading it from the stack frame.
That all seems reasonable to me.
Thanks.
-------------
Marked as reviewed by dholmes (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/8814
More information about the hotspot-dev
mailing list