RFR: 8328306: AArch64: MacOS lazy JIT "write xor execute" switching [v2]

Andrew Haley aph at openjdk.org
Tue Aug 12 10:12:13 UTC 2025


On Tue, 12 Aug 2025 08:31:09 GMT, Bernhard Urban-Forster <burban at openjdk.org> wrote:

> Sorry, my comment was meant for the block handling `SIGBUS`.
> 
> I guess the argument why it's safer than e.g. the previous approach in https://github.com/openjdk/jdk/pull/18762/files#diff-9dcc5bcf908e2f8eb00b2c2837d667687a7540936d8f538ee1ea14e31ad50b40, is that the transition is only done if the WX state is already "armed". 

Yes, exactly. The transition is only done once, and only if WX would otherwise have been set to true already.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26562#discussion_r2269366559


More information about the hotspot-dev mailing list