Skip to content

Commit

Permalink
Call rb_jit_cont_init() even earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Oct 20, 2023
1 parent a9d7525 commit 9853704
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions cont.c
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions vm.c
Expand Up @@ -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);
Expand Down

0 comments on commit 9853704

Please sign in to comment.