summaryrefslogtreecommitdiff
path: root/mjit_worker.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-02-25 23:55:53 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2020-02-25 23:55:54 -0800
commitdaf7c48d888fb544590985db179e39aa53ae79a1 (patch)
treeef2d3bbb4a3af9ebd084b744d371405f96997744 /mjit_worker.c
parent55923ba88366658c6bfdecd8b0b25070d70c569d (diff)
Explain the situation of inner cc_entries [ci skip]
Add a little more details in 7ec23593746c8ccabd6c005cc34dde77d564c6c9
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index 117bcb7..40debd1 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.