RFR: 8363620: AArch64: reimplement emit_static_call_stub()

Andrew Haley aph at openjdk.org
Mon Oct 27 11:53:17 UTC 2025


On Mon, 27 Oct 2025 10:55:02 GMT, Fei Gao <fgao at openjdk.org> wrote:

> According to an older version of the Arm ARM (https://developer.arm.com/documentation/ddi0487/ia), section A2.2.2, there is an architectural guarantee called Prefetch Speculation Protection (PSP).
> 
> From the Arm community blog: https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/caches-self-modifying-code-working-with-threads:

Yes, of course we're aware of that guarantee: without it, it would not be possible to JIT-compile a new method, then branch to it from another method. JIT compilation wouldn't be possible.

[If I recall correctly, this change to the Arm ARM in part resulted from a conversation between us and Will Deacon.]

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

PR Comment: https://git.openjdk.org/jdk/pull/26638#issuecomment-3450883645


More information about the hotspot-dev mailing list