summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-12 02:22:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-12 02:22:55 +0000
commitd8104d73d10a119026122f4734ed23dc257e9cdb (patch)
tree36a60b25c2b60a6f1a177d97d52c80353dc85a71 /node.c
parent3b3b2091d8a353f349249630929f154fa88b7299 (diff)
downloadruby-d8104d73d10a119026122f4734ed23dc257e9cdb.tar.gz
Missing write-barrier
Fix up r64507. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r--node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.c b/node.c
index 9d4a310f15..1911b8929b 100644
--- a/node.c
+++ b/node.c
@@ -1116,7 +1116,7 @@ rb_ast_new(void)
node_buffer_t *nb = rb_node_buffer_new();
VALUE mark_ary = nb->mark_ary;
rb_ast_t *ast = (rb_ast_t *)rb_imemo_new(imemo_ast, 0, 0, 0, (VALUE)nb);
- RB_GC_GUARD(mark_ary);
+ RB_OBJ_WRITTEN(ast, Qnil, mark_ary);
return ast;
}