From 10c4364287e67e8d74d28f90c72b667aa8d8be3b Mon Sep 17 00:00:00 2001 From: aamine Date: Mon, 2 Sep 2002 12:19:30 +0000 Subject: * gc.c (gc_sweep): does reclaim nodes in also compile time, if we can. * ruby.c (load_file): omit GC if we can. * parse.y (ruby_parser_stack_on_heap): new function. * intern.h (ruby_parser_stack_on_heap): added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index 8aa20ce11e..dfaa2e1c9c 100644 --- a/ruby.c +++ b/ruby.c @@ -856,7 +856,10 @@ load_file(fname, script) else if (f != rb_stdin) { rb_io_close(f); } - rb_gc(); + + if (ruby_parser_stack_on_heap()) { + rb_gc(); + } } void -- cgit v1.2.3