8284752: Zero does not build on Mac OS X due to missing os::current_thread_enable_wx implementation

Reviewed-by: dholmes
This commit is contained in:
Johannes Bechberger 2022-04-12 23:23:51 +00:00 committed by David Holmes
parent cafde7fe00
commit bc12e8616d

View File

@ -350,3 +350,9 @@ int os::extra_bang_size_in_bytes() {
// Zero does not require an additional stack bang.
return 0;
}
#if defined(AARCH64) && defined(__APPLE__)
void os::current_thread_enable_wx(WXMode mode) {
pthread_jit_write_protect_np(mode == WXExec);
}
#endif