summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-14 15:38:58 -0700
committerGitHub <noreply@github.com>2023-03-14 15:38:58 -0700
commit70ba3102129dbaf6c943d1ed042103e0238842f4 (patch)
treee0337226448cc96979a9cd382b7f22997c36d387 /compile.c
parent868f03cce1a2d7a4df9b03b8338e3af4c69041d0 (diff)
downloadruby-70ba3102129dbaf6c943d1ed042103e0238842f4.tar.gz
YJIT: Introduce no_gc attribute (#7511)
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 572e727085..8aa2228c53 100644
--- a/compile.c
+++ b/compile.c
@@ -8236,6 +8236,9 @@ compile_builtin_attr(rb_iseq_t *iseq, const NODE *node)
if (strcmp(RSTRING_PTR(string), "leaf") == 0) {
ISEQ_BODY(iseq)->builtin_attrs |= BUILTIN_ATTR_LEAF;
}
+ else if (strcmp(RSTRING_PTR(string), "no_gc") == 0) {
+ ISEQ_BODY(iseq)->builtin_attrs |= BUILTIN_ATTR_NO_GC;
+ }
else {
goto unknown_arg;
}