File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Wed Feb 19 15:25:13 2014 Koichi Sasada <ko1@atdot.net>
2+
3+ * gc.c (ruby_gc_set_params): don't show obsolete warnings for
4+ RUBY_FREE_MIN/RUBY_HEAP_MIN_SLOTS if
5+ RUBY_GC_HEAP_FREE_SLOTS/RUBY_GC_HEAP_INIT_SLOTS are given.
6+ [Bug #9276]
7+
18Wed Feb 19 14:25:55 2014 Koichi Sasada <ko1@atdot.net>
29
310 * test/ruby/test_gc.rb: ignore warning messages for running with -w
Original file line number Diff line number Diff line change @@ -5737,17 +5737,19 @@ ruby_gc_set_params(int safe_level)
57375737 if (safe_level > 0 ) return ;
57385738
57395739 /* RUBY_GC_HEAP_FREE_SLOTS */
5740- if (get_envparam_int ("RUBY_FREE_MIN" , & gc_params .heap_free_slots , 0 )) {
5740+ if (get_envparam_int ("RUBY_GC_HEAP_FREE_SLOTS" , & gc_params .heap_free_slots , 0 )) {
5741+ /* ok */
5742+ }
5743+ else if (get_envparam_int ("RUBY_FREE_MIN" , & gc_params .heap_free_slots , 0 )) {
57415744 rb_warn ("RUBY_FREE_MIN is obsolete. Use RUBY_GC_HEAP_FREE_SLOTS instead." );
57425745 }
5743- get_envparam_int ("RUBY_GC_HEAP_FREE_SLOTS" , & gc_params .heap_free_slots , 0 );
57445746
57455747 /* RUBY_GC_HEAP_INIT_SLOTS */
5746- if (get_envparam_int ("RUBY_HEAP_MIN_SLOTS" , & gc_params .heap_init_slots , 0 )) {
5747- rb_warn ("RUBY_HEAP_MIN_SLOTS is obsolete. Use RUBY_GC_HEAP_INIT_SLOTS instead." );
5748+ if (get_envparam_int ("RUBY_GC_HEAP_INIT_SLOTS" , & gc_params .heap_init_slots , 0 )) {
57485749 gc_set_initial_pages ();
57495750 }
5750- if (get_envparam_int ("RUBY_GC_HEAP_INIT_SLOTS" , & gc_params .heap_init_slots , 0 )) {
5751+ else if (get_envparam_int ("RUBY_HEAP_MIN_SLOTS" , & gc_params .heap_init_slots , 0 )) {
5752+ rb_warn ("RUBY_HEAP_MIN_SLOTS is obsolete. Use RUBY_GC_HEAP_INIT_SLOTS instead." );
57515753 gc_set_initial_pages ();
57525754 }
57535755
Original file line number Diff line number Diff line change 11#define RUBY_VERSION "2.1.1"
22#define RUBY_RELEASE_DATE "2014-02-19"
3- #define RUBY_PATCHLEVEL 34
3+ #define RUBY_PATCHLEVEL 35
44
55#define RUBY_RELEASE_YEAR 2014
66#define RUBY_RELEASE_MONTH 2
You can’t perform that action at this time.
0 commit comments