From b67f07fa2c5b7fe9a08563bbc8084401b2ec68c4 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 7 Mar 2023 23:08:48 -0800 Subject: Get rid of MJIT's special fork --- thread.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 5d36d47748..4e033b7e09 100644 --- a/thread.c +++ b/thread.c @@ -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); -- cgit v1.2.3