From 4885aa9a7c7ae3ea707bfed191466178438ab56c Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 8 Dec 2022 23:06:20 -0800 Subject: [PATCH] MJIT: Add comments about custom hooks [ci skip] --- mjit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mjit.c b/mjit.c index 12c5d4acd9..ef193c2131 100644 --- a/mjit.c +++ b/mjit.c @@ -1128,7 +1128,7 @@ static void mjit_wait(struct rb_mjit_unit *unit); static void check_unit_queue(void) { - if (mjit_opts.custom) return; + if (mjit_opts.custom) return; // Custom RubyVM::MJIT.compile is in use if (worker_stopped) return; if (current_cc_pid != 0) return; // still compiling @@ -1319,7 +1319,7 @@ mjit_add_iseq_to_process(const rb_iseq_t *iseq, const struct rb_mjit_compile_inf { if (!mjit_enabled || pch_status != PCH_SUCCESS || !rb_ractor_main_p()) // TODO: Support non-main Ractors return; - if (mjit_opts.custom) { + if (mjit_opts.custom) { // Hook custom RubyVM::MJIT.compile if defined mjit_hook_custom_compile(iseq); return; }