summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-05-21 23:19:46 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2021-05-21 23:27:36 -0700
commit141861a2223560601151db1a351308e489bed9e6 (patch)
tree21e85e58d8fbabf349daf84b3814ae94abefbd5b
parentc4162a4cb82278b0674452304c96b5775d5b7d6d (diff)
Update a comment about what 'inline' attr means
-rw-r--r--vm_core.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 72120d5302..2d92d9b9f8 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -435,7 +435,10 @@ struct rb_iseq_constant_body {
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