diff options
-rw-r--r-- | cont.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2552,9 +2552,6 @@ rb_threadptr_root_fiber_setup(rb_thread_t *th) fiber->killed = 0; fiber_status_set(fiber, FIBER_RESUMED); /* skip CREATED */ th->ec = &fiber->cont.saved_ec; - // This is the first fiber. Hence it's the first jit_cont_new() as well. - // Initialize the mutex for jit_cont_new() in cont_init_jit_cont(). - rb_jit_cont_init(); cont_init_jit_cont(&fiber->cont); } @@ -3446,6 +3443,8 @@ 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); |