diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-07 23:08:48 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-07 23:08:57 -0800 |
commit | b67f07fa2c5b7fe9a08563bbc8084401b2ec68c4 (patch) | |
tree | ac53c4c7e491f9f1ed76a1ae4754417b26338011 /thread.c | |
parent | 43de2365a5f024118ac5213ef101a23cc8a764e6 (diff) |
Get rid of MJIT's special fork
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -2280,12 +2280,6 @@ threadptr_get_interrupts(rb_thread_t *th) return interrupt & (rb_atomic_t)~ec->interrupt_mask; } -#if USE_RJIT -// process.c -extern bool rjit_waitpid_finished; -extern int rjit_waitpid_status; -#endif - int rb_threadptr_execute_interrupts(rb_thread_t *th, int blocking_timing) { @@ -2335,15 +2329,6 @@ rb_threadptr_execute_interrupts(rb_thread_t *th, int blocking_timing) th->status = prev_status; } -#if USE_RJIT - // Handle waitpid_signal for RJIT issued by ruby_sigchld_handler. This needs to be done - // outside ruby_sigchld_handler to avoid recursively relying on the SIGCHLD handler. - if (rjit_waitpid_finished && th == th->vm->ractor.main_thread) { - rjit_waitpid_finished = false; - rjit_notify_waitpid(WIFEXITED(rjit_waitpid_status) ? WEXITSTATUS(rjit_waitpid_status) : -1); - } -#endif - /* exception from another thread */ if (pending_interrupt && threadptr_pending_interrupt_active_p(th)) { VALUE err = rb_threadptr_pending_interrupt_deque(th, blocking_timing ? INTERRUPT_ON_BLOCKING : INTERRUPT_NONE); |