From 69f377a3d62b29bc927da7fdae99bcb5e7d096fe Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 26 Feb 2020 00:27:28 -0800 Subject: Internalize rb_mjit_unit definition again Fixed a TODO in b9007b6c548f91e88fd3f2ffa23de740431fa969 --- mjit_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mjit_compile.c') diff --git a/mjit_compile.c b/mjit_compile.c index e4f7cf292a..c0e5b18856 100644 --- a/mjit_compile.c +++ b/mjit_compile.c @@ -393,7 +393,7 @@ precompile_inlinable_iseqs(FILE *f, const rb_iseq_t *iseq, struct compile_status if (insn == BIN(opt_send_without_block)) { // `compile_inlined_cancel_handler` supports only `opt_send_without_block` CALL_DATA cd = (CALL_DATA)body->iseq_encoded[pos + 1]; const struct rb_callinfo *ci = cd->ci; - const struct rb_callcache *cc = iseq->body->jit_unit->cc_entries[call_data_index(cd, body)]; // use copy to avoid race condition + const struct rb_callcache *cc = mjit_iseq_cc_entries(iseq->body)[call_data_index(cd, body)]; // use copy to avoid race condition const rb_iseq_t *child_iseq; if (has_valid_method_type(cc) && -- cgit v1.2.3