summaryrefslogtreecommitdiff
path: root/mjit.h
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2020-10-22 14:16:39 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:25 -0400
commit498fe0fb52c4b3f7c8a4abdc9da1fffb2aa8c69b (patch)
treef71a599ee8fd326dc408b073dca0632011341c3b /mjit.h
parent809ecfb1266fac21019f0264f060f408c2946fdd (diff)
Move MicroJIT compilation threshold into MicroJIT's header
Diffstat (limited to 'mjit.h')
-rw-r--r--mjit.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/mjit.h b/mjit.h
index fc99da04a7..51ba66921c 100644
--- a/mjit.h
+++ b/mjit.h
@@ -150,8 +150,7 @@ mjit_exec(rb_execution_context_t *ec)
}
#ifndef MJIT_HEADER
- const int ujit_call_threashold = 10;
- if (rb_ujit_enabled_p() && !mjit_call_p && body->total_calls == ujit_call_threashold) {
+ if (rb_ujit_enabled_p() && !mjit_call_p && body->total_calls == UJIT_CALL_THRESHOLD) {
rb_ujit_compile_iseq(iseq);
return Qundef;
}