aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-12-06 23:24:19 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2022-12-07 21:20:05 -0800
commit09bc3abd2e4e65aed1bdf8adb67ecfcad17e0836 (patch)
tree91c8f9fba489032cc0ed58f2bb2b7ca356015ce9 /mjit.c
parent6fd5d2dc003bda5ce0685abd2b975d7ac7079d46 (diff)
downloadruby-09bc3abd2e4e65aed1bdf8adb67ecfcad17e0836.tar.gz
MJIT: Deal with a TODO with assertion
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c3
1 files changed, 2 insertions, 1 deletions
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;
}
}