Skip to content


8284752: Zero does not build on Mac OS X due to missing os::current_t…
Browse files Browse the repository at this point in the history
…hread_enable_wx implementation

Reviewed-by: dholmes
  • Loading branch information
parttimenerd authored and David Holmes committed Apr 12, 2022
1 parent cafde7f commit bc12e86
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hotspot/os_cpu/bsd_zero/os_bsd_zero.cpp
Expand Up @@ -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);

1 comment on commit bc12e86

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.