mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Explain the situation of inner cc_entries [ci skip]
Add a little more details in 7ec2359374
This commit is contained in:
parent
55923ba883
commit
daf7c48d88
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue