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:
parent
5b29ea0845
commit
f744d80106
1 changed files with 2 additions and 0 deletions
2
iseq.c
2
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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue