diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2020-10-22 14:16:39 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:25 -0400 |
commit | 498fe0fb52c4b3f7c8a4abdc9da1fffb2aa8c69b (patch) | |
tree | f71a599ee8fd326dc408b073dca0632011341c3b /mjit.h | |
parent | 809ecfb1266fac21019f0264f060f408c2946fdd (diff) |
Move MicroJIT compilation threshold into MicroJIT's header
Diffstat (limited to 'mjit.h')
-rw-r--r-- | mjit.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; } |