From 09bc3abd2e4e65aed1bdf8adb67ecfcad17e0836 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 6 Dec 2022 23:24:19 -0800 Subject: MJIT: Deal with a TODO with assertion --- mjit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mjit.c b/mjit.c index 63ea937787..c553383c73 100644 --- a/mjit.c +++ b/mjit.c @@ -1145,6 +1145,7 @@ check_unit_queue(void) // Dequeue a unit struct rb_mjit_unit *unit = get_from_list(&unit_queue); if (unit == NULL) return; + VM_ASSERT(!unit->compact_p); // Run the MJIT compiler synchronously current_cc_ms = real_ms_time(); @@ -1164,7 +1165,7 @@ check_unit_queue(void) current_cc_pid = start_c_compile_unit(unit); if (current_cc_pid == -1) { // JIT failure current_cc_pid = 0; - current_cc_unit->iseq->body->jit_func = (jit_func_t)MJIT_FUNC_FAILED; // TODO: consider unit->compact_p + current_cc_unit->iseq->body->jit_func = (jit_func_t)MJIT_FUNC_FAILED; current_cc_unit = NULL; } } -- cgit v1.2.3