summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2022-11-14 23:38:52 -0800
committerGitHub <[email protected]>2022-11-14 23:38:52 -0800
commitd15d1c01c28f63888475f8016adbc8b4f982b573 (patch)
tree81db7a029619646885607483de43f39303b74fbe /vm.c
parentc75de1e3304e804be9c073940f396c8a506a005f (diff)
Rename --mjit-min-calls to --mjit-call-threshold (#6731)
for consistency with YJIT
Notes
Notes: Merged-By: k0kubun <[email protected]>
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index d540aa1c8b..8aeb3625c9 100644
--- a/vm.c
+++ b/vm.c
@@ -391,7 +391,7 @@ mjit_check_iseq(rb_execution_context_t *ec, const rb_iseq_t *iseq, struct rb_ise
ASSUME(func_i <= LAST_JIT_ISEQ_FUNC);
switch ((enum rb_mjit_iseq_func)func_i) {
case NOT_ADDED_JIT_ISEQ_FUNC:
- if (body->total_calls == mjit_opts.min_calls) {
+ if (body->total_calls == mjit_opts.call_threshold) {
rb_mjit_add_iseq_to_process(iseq);
if (UNLIKELY(mjit_opts.wait && (uintptr_t)body->jit_func > LAST_JIT_ISEQ_FUNC)) {
return body->jit_func(ec, ec->cfp);