[前][次][番号順一覧][スレッド一覧]

ruby-changes:52811

From: nobu <ko1@a...>
Date: Fri, 12 Oct 2018 11:23:00 +0900 (JST)
Subject: [ruby-changes:52811] nobu:r65023 (trunk): Missing write-barrier

nobu	2018-10-12 11:22:55 +0900 (Fri, 12 Oct 2018)

  New Revision: 65023

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65023

  Log:
    Missing write-barrier
    
    Fix up r64507.

  Modified files:
    trunk/node.c
Index: node.c
===================================================================
--- node.c	(revision 65022)
+++ node.c	(revision 65023)
@@ -1116,7 +1116,7 @@ rb_ast_new(void) https://github.com/ruby/ruby/blob/trunk/node.c#L1116
     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;
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]