diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2020-02-25 23:55:53 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2020-02-25 23:55:54 -0800 |
commit | daf7c48d888fb544590985db179e39aa53ae79a1 (patch) | |
tree | ef2d3bbb4a3af9ebd084b744d371405f96997744 | |
parent | 55923ba88366658c6bfdecd8b0b25070d70c569d (diff) |
Explain the situation of inner cc_entries [ci skip]
Add a little more details in 7ec23593746c8ccabd6c005cc34dde77d564c6c9
-rw-r--r-- | mjit_worker.c | 5 |
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. |