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

ruby-changes:60162

From: Koichi <ko1@a...>
Date: Sat, 22 Feb 2020 11:54:39 +0900 (JST)
Subject: [ruby-changes:60162] f744d80106 (master): check USE_MJIT

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

From f744d80106ad236cb517c3a6eae5e591562e2377 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Sat, 22 Feb 2020 11:23:30 +0900
Subject: check USE_MJIT

iseq->body->jit_unit is not available if USE_MJIT==0 .

diff --git a/iseq.c b/iseq.c
index c6c5c6e..25f45a7 100644
--- a/iseq.c
+++ b/iseq.c
@@ -358,6 +358,7 @@ rb_iseq_mark(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/iseq.c#L358
 	    }
 	}
 
+#if USE_MJIT
         if (body->jit_unit && body->jit_unit->cc_entries != NULL) {
             // TODO: move to mjit.c?
             for (unsigned int i=0; i<body->ci_size; i++) {
@@ -365,6 +366,7 @@ rb_iseq_mark(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/iseq.c#L366
                 rb_gc_mark((VALUE)cc); // pindown
             }
         }
+#endif
     }
 
     if (FL_TEST_RAW(iseq, ISEQ_NOT_LOADED_YET)) {
-- 
cgit v0.10.2


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

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