1
0
Fork 0
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:
Takashi Kokubun 2020-02-25 23:55:53 -08:00
parent 55923ba883
commit daf7c48d88
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -1145,6 +1145,11 @@ mjit_copy_cache_from_main_thread(const rb_iseq_t *iseq, union iseq_inline_storag
if (UNLIKELY(mjit_opts.wait)) { if (UNLIKELY(mjit_opts.wait)) {
// setup pseudo jit_unit // 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) { if (iseq->body->jit_unit == NULL) {
// This function is invoked in mjit worker thread, so GC should not be invoked. // This function is invoked in mjit worker thread, so GC should not be invoked.
// To prevent GC with xmalloc(), use malloc() directly here. // To prevent GC with xmalloc(), use malloc() directly here.