RFR: 8328306: AArch64: MacOS lazy JIT "write xor execute" switching [v3]
Andrew Haley
aph at openjdk.org
Mon Aug 18 15:52:15 UTC 2025
On Sat, 16 Aug 2025 06:25:43 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> Only the hotspot code should write into the code cache, right? A more secure alternative would be then to use `os::address_is_in_vm()`. That compares against the text segment of the libjvm. Prevents accidental misdiagnosis of writes from anywhere (including possibly deliberate ones).
True, but is `dladdr(3)` safe to call from a sighandler on BSD? I don't know, but I wouldn't have thought so.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26562#discussion_r2282795996
More information about the hotspot-dev
mailing list