RFR: 8287567: AArch64: Implement post-call NOPs
Dean Long
dlong at openjdk.java.net
Wed Jun 1 20:21:35 UTC 2022
On Tue, 31 May 2022 13:34:24 GMT, Andrew Haley <aph at openjdk.org> wrote:
> Post-call NOPs (introduced with Loom virtual threads) are not implemented in the AArch64 port. Given that these are a significant optimization on x86, we should have them on AArch64 too.
>
> I looked at a variety of possible instruction sequences, and ended up with `nop; movk zr, lo; movk zr, hi`. `movk` is typically one of the fastest AArch64 instructions, so it should be suitable. It's not possible to patch the `movk` instructions concurrently with this code executing, but as far as I can tell the offsets in post-call NOPs are only ever patched while the code is being installed.
Marked as reviewed by dlong (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/8955
More information about the hotspot-dev
mailing list