summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-08 09:57:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-08 09:57:12 +0000
commit2f7f565d68461650fe435014f82e6f6658d018b5 (patch)
treea2767d742958b3f92eb58b42877d6d1603c43dc2 /gc.c
parent46d8d022a2d086b2b73b5e1df4c3a2d6214b39b6 (diff)
downloadruby-2f7f565d68461650fe435014f82e6f6658d018b5.tar.gz
ruby-2f7f565d68461650fe435014f82e6f6658d018b5.tar.xz
ruby-2f7f565d68461650fe435014f82e6f6658d018b5.zip
* parse.y (rb_parser_malloc, rb_parser_free): manage parser stack on
heap. [ruby-list:41199] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gc.c b/gc.c
index ca3862f0b..06c4420df 100644
--- a/gc.c
+++ b/gc.c
@@ -880,13 +880,11 @@ gc_mark_children(ptr, lev)
case NODE_BLOCK_ARG:
case NODE_POSTEXE:
break;
-#ifdef C_ALLOCA
case NODE_ALLOCA:
mark_locations_array((VALUE*)obj->as.node.u1.value,
obj->as.node.u3.cnt);
ptr = (VALUE)obj->as.node.u2.node;
goto again;
-#endif
default: /* unlisted NODE */
if (is_pointer_to_heap(obj->as.node.u1.node)) {
@@ -1230,11 +1228,9 @@ obj_free(obj)
RUBY_CRITICAL(free(RANY(obj)->as.node.u1.tbl));
}
break;
-#ifdef C_ALLOCA
case NODE_ALLOCA:
RUBY_CRITICAL(free(RANY(obj)->as.node.u1.node));
break;
-#endif
}
return; /* no need to free iv_tbl */