summaryrefslogtreecommitdiff
path: root/mjit_compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'mjit_compile.c')
-rw-r--r--mjit_compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mjit_compile.c b/mjit_compile.c
index 7913e6836b..fa686c005c 100644
--- a/mjit_compile.c
+++ b/mjit_compile.c
@@ -176,6 +176,7 @@ mjit_compile(FILE *f, const struct rb_iseq_constant_body *body, const char *func
status.compiled_for_pos = ZALLOC_N(int, body->iseq_size);
status.local_stack_p = !body->catch_except_p;
+ /* For performance, disable stack consistency check on JIT unless debugging */
if (!mjit_opts.debug) {
fprintf(f, "#undef OPT_CHECKED_RUN\n");
fprintf(f, "#define OPT_CHECKED_RUN 0\n\n");