RFR: 8267235: [macos_aarch64] InterpreterRuntime::throw_pending_exception messing up LR results in crash
Vladimir Kempik
vkempik at openjdk.java.net
Wed May 19 13:01:53 UTC 2021
Please review this patch for call_VM_Base routine.
it's expected there the LR is callee-saved register, but it's not on aarch64.
when InterpreterRuntime::throw_pending_exception is tail-call optimized,
the last subroutine before return is pthread_jit_write_protect_np which pac-sign LR.
It can only be reproduced in macos 11.4beta (just run J2Ddemo ) but in fact affects every aarch64 build.
-------------
Commit messages:
- JDK-8267235: [macos_aarch64] InterpreterRuntime::throw_pending_exception messing up LR results in crash
Changes: https://git.openjdk.java.net/jdk/pull/4115/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4115&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8267235
Stats: 7 lines in 1 file changed: 7 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/4115.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/4115/head:pull/4115
PR: https://git.openjdk.java.net/jdk/pull/4115
More information about the hotspot-dev
mailing list