summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-02-26 00:27:28 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2020-02-26 00:27:29 -0800
commit69f377a3d62b29bc927da7fdae99bcb5e7d096fe (patch)
tree50b8df9107fcc48cff18d609b63fa3b305319322 /iseq.c
parentdaf7c48d888fb544590985db179e39aa53ae79a1 (diff)
Internalize rb_mjit_unit definition again
Fixed a TODO in b9007b6c548f91e88fd3f2ffa23de740431fa969
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/iseq.c b/iseq.c
index 40be6c76c4..065791b74b 100644
--- a/iseq.c
+++ b/iseq.c
@@ -359,10 +359,9 @@ 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?
+ if (body->jit_unit && mjit_iseq_cc_entries(body) != NULL) {
for (unsigned int i=0; i<body->ci_size; i++) {
- const struct rb_callcache *cc = body->jit_unit->cc_entries[i];
+ const struct rb_callcache *cc = mjit_iseq_cc_entries(body)[i];
if (cc != NULL) {
rb_gc_mark((VALUE)cc); // pindown
}