@@ -205,7 +205,7 @@ bool PosixSignals::pd_hotspot_signal_handler(int sig, siginfo_t* info,
205205 ucontext_t * uc, JavaThread* thread) {
206206 // Enable WXWrite: this function is called by the signal handler at arbitrary
207207 // point of execution.
208- os::ThreadWXEnable wx (os::WXWrite );
208+ os::current_thread_wx::Enable wx (os::current_thread_wx::Write );
209209
210210 // decide if this trap can be handled by a stub
211211 address stub = NULL ;
@@ -536,25 +536,25 @@ void os::verify_stack_alignment() {
536536
537537#ifdef __APPLE__
538538
539- static THREAD_LOCAL os::WXMode _wx_state = os::WXWrite ;
539+ static THREAD_LOCAL os::current_thread_wx:: WXMode _wx_state = os::current_thread_wx::Write ;
540540
541541int os::extra_bang_size_in_bytes () {
542542 // AArch64 does not require the additional stack bang.
543543 return 0 ;
544544}
545545
546- os::WXMode os::current_thread_change_wx (WXMode new_state) {
546+ os::current_thread_wx:: WXMode os::current_thread_wx::change (WXMode new_state) {
547547 WXMode old = _wx_state;
548548 _wx_state = new_state;
549- pthread_jit_write_protect_np (_wx_state == os::WXExec );
549+ pthread_jit_write_protect_np (_wx_state == os::current_thread_wx::Exec );
550550 return old;
551551}
552552
553- void os::current_thread_init_wx () {
554- current_thread_change_wx (os::WXWrite );
553+ void os::current_thread_wx::init () {
554+ change (os::current_thread_wx::Write );
555555}
556556
557- void os::current_thread_assert_wx_state (WXMode expected) {
557+ void os::current_thread_wx::assert_wx (WXMode expected) {
558558 assert (_wx_state == expected, " wrong state" );
559559}
560560#endif
0 commit comments