ruby-changes:48607
From: mame <ko1@a...>
Date: Thu, 9 Nov 2017 10:32:15 +0900 (JST)
Subject: [ruby-changes:48607] mame:r60722 (trunk): use `rb_ast_dispose` instead of `rb_ast_free`
mame 2017-11-09 10:32:11 +0900 (Thu, 09 Nov 2017) New Revision: 60722 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60722 Log: use `rb_ast_dispose` instead of `rb_ast_free` `rb_ast_dispose` calls `rb_gc_writebarrier_remember`. Unless we call it, the marked objects may not be GC'ed until `rb_ast_t` is GC'ed. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 60721) +++ parse.y (revision 60722) @@ -12109,7 +12109,7 @@ ripper_parse0(VALUE parser_v) https://github.com/ruby/ruby/blob/trunk/parse.y#L12109 parser_prepare(parser); parser->ast = rb_ast_new(); ripper_yyparse((void*)parser); - rb_ast_free(parser->ast); + rb_ast_dispose(parser->ast); parser->ast = 0; return parser->result; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/