summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-09-06 18:40:22 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2022-09-06 18:40:23 -0700
commitf0661bf3a04a3edfe157462f87e2c588dca955ad (patch)
tree6b4ee692fe0fc15a3c1d1c94154bdbb608046cba /mjit.c
parente6b47f2fb077d1a3bcef9100846b633989a93cfe (diff)
Skip early mjit_add_iseq_to_process on --mjit=pause
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit.c b/mjit.c
index 04bdf404b7..67b6845cb6 100644
--- a/mjit.c
+++ b/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);