ruby-changes:46170
From: nobu <ko1@a...>
Date: Sun, 9 Apr 2017 11:06:49 +0900 (JST)
Subject: [ruby-changes:46170] nobu:r58283 (trunk): no mark of u3 in NODE_BLOCK_PASS
nobu 2017-04-09 11:06:45 +0900 (Sun, 09 Apr 2017) New Revision: 58283 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58283 Log: no mark of u3 in NODE_BLOCK_PASS * node.c (rb_gc_mark_node): u3 in NODE_BLOCK_PASS is not used and does not need to be marked. Modified files: trunk/node.c Index: node.c =================================================================== --- node.c (revision 58282) +++ node.c (revision 58283) @@ -1068,7 +1068,6 @@ rb_gc_mark_node(NODE *obj) https://github.com/ruby/ruby/blob/trunk/node.c#L1068 case NODE_RESCUE: case NODE_RESBODY: case NODE_CLASS: - case NODE_BLOCK_PASS: case NODE_MATCH2: rb_gc_mark(RNODE(obj)->u2.value); /* fall through */ @@ -1107,6 +1106,7 @@ rb_gc_mark_node(NODE *obj) https://github.com/ruby/ruby/blob/trunk/node.c#L1106 case NODE_ALIAS: case NODE_VALIAS: case NODE_ARGSCAT: + case NODE_BLOCK_PASS: rb_gc_mark(RNODE(obj)->u1.value); /* fall through */ case NODE_GASGN: /* 2 */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/