1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

check USE_MJIT

iseq->body->jit_unit is not available if USE_MJIT==0 .
This commit is contained in:
Koichi Sasada 2020-02-22 11:23:30 +09:00
parent 5b29ea0845
commit f744d80106

2
iseq.c
View file

@ -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)) {