summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mjit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mjit.h b/mjit.h
index 413e6f83cc..d887e7df5c 100644
--- a/mjit.h
+++ b/mjit.h
@@ -151,10 +151,12 @@ mjit_exec(rb_execution_context_t *ec)
body = iseq->body;
body->total_calls++;
+#ifndef MJIT_HEADER
const int ujit_call_threashold = 10;
if (body->total_calls == ujit_call_threashold) {
rb_ujit_compile_iseq(iseq);
}
+#endif
mjit_func_t func = body->jit_func;
if (UNLIKELY((uintptr_t)func <= LAST_JIT_ISEQ_FUNC)) {