On Thu, 4 Feb 2021 08:26:35 GMT, Mikael Vidstedt <mik...@openjdk.org> wrote:
> You read my mind, Andrew. Unless, of course, it's optimized to leverage the > fact that it's thread-specific.. it's thread-specific https://developer.apple.com/documentation/apple_silicon/porting_just-in-time_compilers_to_apple_silicon >Because pthread_jit_write_protect_np changes only the current thread’s >permissions, avoid accessing the same memory region from multiple threads. >Giving multiple threads access to the same memory region opens up a potential >attack vector, in which one thread has write access and another has executable >access to the same region. ------------- PR: https://git.openjdk.java.net/jdk/pull/2200