From fd1462576c3e2750184841e3ebb07f0bf165a3cd Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 9 Apr 2017 02:06:45 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.c b/node.c index a22c456249..b06e6dc175 100644 --- a/node.c +++ b/node.c @@ -1068,7 +1068,6 @@ rb_gc_mark_node(NODE *obj) 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) 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 */