ruby-changes:33149
From: normal <ko1@a...>
Date: Sat, 1 Mar 2014 19:08:14 +0900 (JST)
Subject: [ruby-changes:33149] normal:r45228 (trunk): gc.c: simplify condition
normal 2014-03-01 19:08:10 +0900 (Sat, 01 Mar 2014) New Revision: 45228 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45228 Log: gc.c: simplify condition Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 45227) +++ ChangeLog (revision 45228) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Mar 1 19:06:47 2014 Eric Wong <e@8...> + + * gc.c (ruby_gc_set_params): simplify condition + Sat Mar 1 16:18:40 2014 Tanaka Akira <akr@f...> * ext/readline/readline.c (Init_readline): Use rl_hook_func_t instead @@ -5,7 +9,7 @@ Sat Mar 1 16:18:40 2014 Tanaka Akira https://github.com/ruby/ruby/blob/trunk/ChangeLog#L9 since readline-4.2.) Reported by Dmitry Medvinsky. [ruby-core:61141] [Bug #9578] -Sat Mar 1 16:05:58 2014 Eric Wong <e@8...> +Sat Mar 1 16:05:58 2014 Eric Wong <e@8...> * gc.c (ruby_gc_set_params): fix building without RGenGC Index: gc.c =================================================================== --- gc.c (revision 45227) +++ gc.c (revision 45228) @@ -5827,7 +5827,7 @@ ruby_gc_set_params(int safe_level) https://github.com/ruby/ruby/blob/trunk/gc.c#L5827 get_envparam_size ("RUBY_GC_MALLOC_LIMIT_MAX", &gc_params.malloc_limit_max, 0); get_envparam_double("RUBY_GC_MALLOC_LIMIT_GROWTH_FACTOR", &gc_params.malloc_limit_growth_factor, 1.0); -#if (USE_RGENGC) && defined(RGENGC_ESTIMATE_OLDMALLOC) +#if RGENGC_ESTIMATE_OLDMALLOC if (get_envparam_size("RUBY_GC_OLDMALLOC_LIMIT", &gc_params.oldmalloc_limit_min, 0)) { rb_objspace_t *objspace = &rb_objspace; objspace->rgengc.oldmalloc_increase_limit = gc_params.oldmalloc_limit_min; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/