Call rb_jit_cont_init() even earlier
To fix https://github.com/ruby/ruby/actions/runs/6581593578/job/17881779994
This commit is contained in:
parent
a9d7525fb4
commit
985370406d
2
cont.c
2
cont.c
@ -3443,8 +3443,6 @@ Init_Cont(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rb_jit_cont_init();
|
|
||||||
|
|
||||||
rb_cFiber = rb_define_class("Fiber", rb_cObject);
|
rb_cFiber = rb_define_class("Fiber", rb_cObject);
|
||||||
rb_define_alloc_func(rb_cFiber, fiber_alloc);
|
rb_define_alloc_func(rb_cFiber, fiber_alloc);
|
||||||
rb_eFiberError = rb_define_class("FiberError", rb_eStandardError);
|
rb_eFiberError = rb_define_class("FiberError", rb_eStandardError);
|
||||||
|
1
vm.c
1
vm.c
@ -4110,6 +4110,7 @@ Init_BareVM(void)
|
|||||||
th->vm = vm;
|
th->vm = vm;
|
||||||
th->ractor = vm->ractor.main_ractor = rb_ractor_main_alloc();
|
th->ractor = vm->ractor.main_ractor = rb_ractor_main_alloc();
|
||||||
Init_native_thread(th);
|
Init_native_thread(th);
|
||||||
|
rb_jit_cont_init();
|
||||||
th_init(th, 0, vm);
|
th_init(th, 0, vm);
|
||||||
|
|
||||||
rb_ractor_set_current_ec(th->ractor, th->ec);
|
rb_ractor_set_current_ec(th->ractor, th->ec);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user