[aarch64-port-dev ] RFR: 8253816: Switch to Exec W^X mode after JNI DetachCurrentThread
Bernhard Urban-Forster
burban at openjdk.java.net
Thu Dec 17 12:35:24 UTC 2020
On Wed, 9 Dec 2020 14:57:42 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:
> JVM leaves Writeable mode for W^X after JNI detach thread. #9 describes an example when this breaks application expectations: a thread returns to a code generated by the application after JNI detach and crashes. Since the default mode is Executable, the change to Writeable is implicit and not expected.
>
> The proposed solution is to ensure Executable mode after JNI detach.
Looks good to me. Thanks for providing a test case.
-------------
Marked as reviewed by burban (Author).
PR: https://git.openjdk.java.net/aarch64-port/pull/10
More information about the aarch64-port-dev
mailing list