From 70ba3102129dbaf6c943d1ed042103e0238842f4 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 14 Mar 2023 15:38:58 -0700 Subject: YJIT: Introduce no_gc attribute (#7511) --- compile.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compile.c') 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; } -- cgit v1.2.1