From fe2b0129cc64c9e2feeba200a8b176dc6d4b45ca Mon Sep 17 00:00:00 2001 From: matz Date: Sun, 24 Sep 2006 23:17:42 +0000 Subject: * array.c (rb_ary_shift): should clear shifting top element. [ruby-talk:216055] * array.c (rb_ary_shift): avoid creating shared object if array size is small. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index d7e431a704..6c83bd43b5 100644 --- a/gc.c +++ b/gc.c @@ -866,10 +866,6 @@ gc_mark_children(VALUE ptr, int lev) ptr = (VALUE)obj->as.node.u1.node; goto again; - case NODE_POSTEXE: /* 2 */ - ptr = (VALUE)obj->as.node.u2.node; - goto again; - case NODE_SCOPE: /* 2,3 */ case NODE_CDECL: gc_mark((VALUE)obj->as.node.u3.node, lev); @@ -896,6 +892,7 @@ gc_mark_children(VALUE ptr, int lev) case NODE_ERRINFO: case NODE_ATTRSET: case NODE_BLOCK_ARG: + case NODE_POSTEXE: break; case NODE_ALLOCA: mark_locations_array((VALUE*)obj->as.node.u1.value, -- cgit v1.2.3