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

ruby-changes:66298

From: Takashi <ko1@a...>
Date: Sat, 22 May 2021 15:27:58 +0900 (JST)
Subject: [ruby-changes:66298] 141861a222 (master): Update a comment about what 'inline' attr means

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

From 141861a2223560601151db1a351308e489bed9e6 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Fri, 21 May 2021 23:19:46 -0700
Subject: Update a comment about what 'inline' attr means

---
 vm_core.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/vm_core.h b/vm_core.h
index 72120d5..2d92d9b 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -435,7 +435,10 @@ struct rb_iseq_constant_body { https://github.com/ruby/ruby/blob/trunk/vm_core.h#L435
     unsigned int stack_max; /* for stack overflow check */
 
     char catch_except_p; /* If a frame of this ISeq may catch exception, set TRUE */
-    bool builtin_inline_p; // This ISeq's builtin func is safe to be inlined by MJIT
+    // If true, this ISeq is leaf *and* backtraces are not used, for example,
+    // by rb_profile_frames. We verify only leafness on VM_CHECK_MODE though.
+    // For more details, see: https://bugs.ruby-lang.org/issues/16956
+    bool builtin_inline_p;
     struct rb_id_table *outer_variables;
 
 #if USE_MJIT
-- 
cgit v1.1


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

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