summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mjit_worker.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index 117bcb786c..40debd10f4 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -1145,6 +1145,11 @@ mjit_copy_cache_from_main_thread(const rb_iseq_t *iseq, union iseq_inline_storag
if (UNLIKELY(mjit_opts.wait)) {
// setup pseudo jit_unit
+ //
+ // Usually jit_unit is created in `rb_mjit_add_iseq_to_process`.
+ // However, this copy job can be used for inlined ISeqs too, and
+ // inlined ISeq doesn't have a jit_unit.
+ // TODO: Manage the cc in outer ISeq's jit_unit.
if (iseq->body->jit_unit == NULL) {
// This function is invoked in mjit worker thread, so GC should not be invoked.
// To prevent GC with xmalloc(), use malloc() directly here.