From eb807d42eca121df22f72b95465bba52a4e7fefa Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 7 Mar 2011 08:39:39 +0000 Subject: * gc.c (rb_gc_set_params): allow GC parameter configuration by environment variables. based on a patch from funny-falcon at https://gist.github.com/856296, but honors safe level. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index 749b57a893..c5d46eddbf 100644 --- a/ruby.c +++ b/ruby.c @@ -1544,6 +1544,7 @@ process_options(int argc, char **argv, struct cmdline_options *opt) rb_define_readonly_boolean("$-a", opt->do_split); rb_set_safe_level(opt->safe_level); + rb_gc_set_params(); return iseq; } -- cgit v1.2.3