diff --git a/ChangeLog b/ChangeLog index 98861c8b73..e913ff96ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Mar 1 19:06:47 2014 Eric Wong + + * gc.c (ruby_gc_set_params): simplify condition + Sat Mar 1 16:18:40 2014 Tanaka Akira * 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 since readline-4.2.) Reported by Dmitry Medvinsky. [ruby-core:61141] [Bug #9578] -Sat Mar 1 16:05:58 2014 Eric Wong +Sat Mar 1 16:05:58 2014 Eric Wong * gc.c (ruby_gc_set_params): fix building without RGenGC diff --git a/gc.c b/gc.c index a677370e6b..9a6a8c7eef 100644 --- a/gc.c +++ b/gc.c @@ -5827,7 +5827,7 @@ ruby_gc_set_params(int safe_level) 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;