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:
parent
e6b47f2fb0
commit
f0661bf3a0
1 changed files with 1 additions and 1 deletions
2
mjit.c
2
mjit.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue