[前][次][番号順一覧][スレッド一覧]

ruby-changes:61025

From: Takashi <ko1@a...>
Date: Thu, 7 May 2020 02:48:57 +0900 (JST)
Subject: [ruby-changes:61025] 1e3c910bfc (master): Enable OPT_CHECKED_RUN on MJIT for debugging

https://git.ruby-lang.org/ruby.git/commit/?id=1e3c910bfc

From 1e3c910bfc57e4d8bedb0c8784562e06aa08ae29 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Wed, 6 May 2020 10:47:00 -0700
Subject: 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

diff --git a/mjit_compile.c b/mjit_compile.c
index b64cbb4..cc4aa00 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 https://github.com/ruby/ruby/blob/trunk/mjit_compile.c#L474
 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");
     }
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]