1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Missing write-barrier

Fix up r64507.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-10-12 02:22:55 +00:00
parent 3b3b2091d8
commit d8104d73d1

2
node.c
View file

@ -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;
}