[前][次][番号順一覧][スレッド一覧]

ruby-changes:60201

From: Takashi <ko1@a...>
Date: Wed, 26 Feb 2020 16:56:34 +0900 (JST)
Subject: [ruby-changes:60201] daf7c48d88 (master): Explain the situation of inner cc_entries [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=daf7c48d88

From daf7c48d888fb544590985db179e39aa53ae79a1 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Tue, 25 Feb 2020 23:55:53 -0800
Subject: Explain the situation of inner cc_entries [ci skip]

Add a little more details in 7ec23593746c8ccabd6c005cc34dde77d564c6c9

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 https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L1145
 
     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.
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]