summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-02-22 11:23:30 +0900
committerKoichi Sasada <ko1@atdot.net>2020-02-22 11:54:19 +0900
commitf744d80106ad236cb517c3a6eae5e591562e2377 (patch)
tree3db2cf88513820b78ebf81dc25c6c998caedcb87 /iseq.c
parent5b29ea0845c14092abd866ce0183c52635bade4c (diff)
check USE_MJIT
iseq->body->jit_unit is not available if USE_MJIT==0 .
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/iseq.c b/iseq.c
index c6c5c6e127..25f45a767f 100644
--- a/iseq.c
+++ b/iseq.c
@@ -358,6 +358,7 @@ rb_iseq_mark(const rb_iseq_t *iseq)
}
}
+#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)
rb_gc_mark((VALUE)cc); // pindown
}
}
+#endif
}
if (FL_TEST_RAW(iseq, ISEQ_NOT_LOADED_YET)) {