diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-14 15:38:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 15:38:58 -0700 |
commit | 70ba3102129dbaf6c943d1ed042103e0238842f4 (patch) | |
tree | e0337226448cc96979a9cd382b7f22997c36d387 /compile.c | |
parent | 868f03cce1a2d7a4df9b03b8338e3af4c69041d0 (diff) | |
download | ruby-70ba3102129dbaf6c943d1ed042103e0238842f4.tar.gz |
YJIT: Introduce no_gc attribute (#7511)
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |