From 985370406d2c5150fa3e0f23cdae605ec1a60fdb Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 19 Oct 2023 17:12:08 -0700 Subject: [PATCH] Call rb_jit_cont_init() even earlier To fix https://github.com/ruby/ruby/actions/runs/6581593578/job/17881779994 --- cont.c | 2 -- vm.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cont.c b/cont.c index b8b6468c1c..621de351cb 100644 --- a/cont.c +++ b/cont.c @@ -3443,8 +3443,6 @@ Init_Cont(void) } } - rb_jit_cont_init(); - rb_cFiber = rb_define_class("Fiber", rb_cObject); rb_define_alloc_func(rb_cFiber, fiber_alloc); rb_eFiberError = rb_define_class("FiberError", rb_eStandardError); diff --git a/vm.c b/vm.c index 456af58bfe..cd6d4a5547 100644 --- a/vm.c +++ b/vm.c @@ -4110,6 +4110,7 @@ Init_BareVM(void) th->vm = vm; th->ractor = vm->ractor.main_ractor = rb_ractor_main_alloc(); Init_native_thread(th); + rb_jit_cont_init(); th_init(th, 0, vm); rb_ractor_set_current_ec(th->ractor, th->ec);