YJIT: Always define method codegen table at boot (#8807)

This commit is contained in:
Takashi Kokubun 2023-11-02 09:15:48 -07:00 committed by GitHub
parent 5f130e2111
commit ad4f973ecd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 102 additions and 103 deletions

3
ruby.c
View file

@ -1793,8 +1793,7 @@ ruby_opt_init(ruby_cmdline_options_t *opt)
rb_rjit_init(&opt->rjit);
#endif
#if USE_YJIT
if (opt->yjit)
rb_yjit_init();
rb_yjit_init(opt->yjit);
#endif
ruby_set_script_name(opt->script_name);