ruby-changes:29355
From: ko1 <ko1@a...>
Date: Wed, 19 Jun 2013 07:49:29 +0900 (JST)
Subject: [ruby-changes:29355] ko1:r41407 (trunk): * gc.c (garbage_collect_body): use FIX2INT for ruby_gc_stress.
ko1 2013-06-19 07:49:19 +0900 (Wed, 19 Jun 2013) New Revision: 41407 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41407 Log: * gc.c (garbage_collect_body): use FIX2INT for ruby_gc_stress. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 41406) +++ ChangeLog (revision 41407) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Jun 19 07:47:48 2013 Koichi Sasada <ko1@a...> + + * gc.c (garbage_collect_body): use FIX2INT for ruby_gc_stress. + Wed Jun 19 07:44:31 2013 Koichi Sasada <ko1@a...> * gc.c (rb_objspace::gc_stress): int -> VALUE to store Fixnum object. Index: gc.c =================================================================== --- gc.c (revision 41406) +++ gc.c (revision 41407) @@ -3871,7 +3871,7 @@ garbage_collect_body(rb_objspace_t *objs https://github.com/ruby/ruby/blob/trunk/gc.c#L3871 immediate_sweep = TRUE; if (FIXNUM_P(ruby_gc_stress)) { - int flag = ruby_gc_stress; + int flag = FIX2INT(ruby_gc_stress); if (flag & 0x01) minor_gc = TRUE; if (flag & 0x02) immediate_sweep = FALSE; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/