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

Backport-of: bc12e8616d1a28ab8504bcb6edc06783748cc797
  • Loading branch information
parttimenerd authored and GoeLin committed Oct 11, 2022
1 parent b38b6d5 commit d7a3a9e
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 d7a3a9e

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.