зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
07cfb683a4
Коммит
fd1462576c
2
node.c
2
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 */
|
||||
|
|
Загрузка…
Ссылка в новой задаче