summaryrefslogtreecommitdiff
path: root/mjit_compile.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-03 00:52:30 (GMT)
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-03 00:52:30 (GMT)
commit9b6dec6cac17a507792add61247772ac76d23f48 (patch)
treeeabcdf013c2ae5d5ddb255d03daff73473486dfa /mjit_compile.c
parent6afea14043b0c0e603f26c89ae0d043f65852668 (diff)
mjit_compile.inc.erb: verify stack consistency
on JIT compilation. r63092 was risky without this check. mjit_compile.c: update comment about stack consistency check git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit_compile.c')
-rw-r--r--mjit_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit_compile.c b/mjit_compile.c
index fa686c0..d3ca3ee 100644
--- a/mjit_compile.c
+++ b/mjit_compile.c
@@ -176,7 +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 */
+ /* For performance, we verify stack size only on compilation time (mjit_compile.inc.erb) without --jit-debug */
if (!mjit_opts.debug) {
fprintf(f, "#undef OPT_CHECKED_RUN\n");
fprintf(f, "#define OPT_CHECKED_RUN 0\n\n");