From 1e3c910bfc57e4d8bedb0c8784562e06aa08ae29 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 6 May 2020 10:47:00 -0700 Subject: [PATCH] Enable OPT_CHECKED_RUN on MJIT for debugging Trying to debug errors like http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2921397 http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2894526 --- mjit_compile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mjit_compile.c b/mjit_compile.c index b64cbb42b7..cc4aa0043c 100644 --- a/mjit_compile.c +++ b/mjit_compile.c @@ -474,8 +474,7 @@ precompile_inlinable_iseqs(FILE *f, const rb_iseq_t *iseq, struct compile_status bool mjit_compile(FILE *f, const rb_iseq_t *iseq, const char *funcname, int id) { - // For performance, we verify stack size only on compilation time (mjit_compile.inc.erb) without --jit-debug - if (!mjit_opts.debug) { + if (false) { // Now always checking it for debugging. fprintf(f, "#undef OPT_CHECKED_RUN\n"); fprintf(f, "#define OPT_CHECKED_RUN 0\n\n"); }