aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.h
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2021-02-23 15:22:20 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:30 -0400
commit0710bec01e405af596fa3e8e29ba38bb8176e39d (patch)
tree5917722657fa3a9ee00efb76bd4fd8ebd5a1586e /mjit.h
parent58657b33e751ec0718f539bc9fa62f0ffa02801f (diff)
downloadruby-0710bec01e405af596fa3e8e29ba38bb8176e39d.tar.gz
Implement --ujit-call-threshold
Diffstat (limited to 'mjit.h')
-rw-r--r--mjit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit.h b/mjit.h
index 0264962da8..83f5cb919a 100644
--- a/mjit.h
+++ b/mjit.h
@@ -150,7 +150,7 @@ mjit_exec(rb_execution_context_t *ec)
}
#ifndef MJIT_HEADER
- if (rb_ujit_enabled_p() && !mjit_call_p && body->total_calls == UJIT_CALL_THRESHOLD) {
+ if (rb_ujit_enabled_p() && !mjit_call_p && body->total_calls == rb_ujit_call_threshold()) {
rb_ujit_compile_iseq(iseq);
return Qundef;
}