diff options
author | Takashi Kokubun <[email protected]> | 2022-12-08 23:06:20 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2022-12-08 23:06:27 -0800 |
commit | 4885aa9a7c7ae3ea707bfed191466178438ab56c (patch) | |
tree | 6c1efff4f367e09c570ec3f9ccaf68c65924a256 | |
parent | 97ed056274f4b1f5a174f9ed45aecba4d3c37568 (diff) |
MJIT: Add comments about custom hooks [ci skip]
-rw-r--r-- | mjit.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |