1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Skip early mjit_add_iseq_to_process on --mjit=pause

This commit is contained in:
Takashi Kokubun 2022-09-06 18:40:22 -07:00
parent e6b47f2fb0
commit f0661bf3a0
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

2
mjit.c
View file

@ -1432,7 +1432,7 @@ mjit_hook_custom_compile(const rb_iseq_t *iseq)
static void
mjit_add_iseq_to_process(const rb_iseq_t *iseq, const struct rb_mjit_compile_info *compile_info, bool recompile_p)
{
if (!mjit_enabled || pch_status == PCH_FAILED || !rb_ractor_main_p()) // TODO: Support non-main Ractors
if (!mjit_enabled || pch_status != PCH_SUCCESS || !rb_ractor_main_p()) // TODO: Support non-main Ractors
return;
if (mjit_opts.custom) {
mjit_hook_custom_compile(iseq);