1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* gc.c (gc_stress_get): GC.stress can be Fixnum.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2013-06-19 11:53:07 +00:00
parent 9cff4e30c6
commit 28945ea146
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Wed Jun 19 20:51:21 2013 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* gc.c (gc_stress_get): GC.stress can be Fixnum.
Wed Jun 19 19:31:30 2013 Tanaka Akira <akr@fsij.org> Wed Jun 19 19:31:30 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (DIGSPERLONG): Don't define if BDIGIT is bigger than long. * bignum.c (DIGSPERLONG): Don't define if BDIGIT is bigger than long.

4
gc.c
View file

@ -4192,7 +4192,7 @@ gc_stat(int argc, VALUE *argv, VALUE self)
/* /*
* call-seq: * call-seq:
* GC.stress -> true or false * GC.stress -> fixnum, true or false
* *
* Returns current status of GC stress mode. * Returns current status of GC stress mode.
*/ */
@ -4201,7 +4201,7 @@ static VALUE
gc_stress_get(VALUE self) gc_stress_get(VALUE self)
{ {
rb_objspace_t *objspace = &rb_objspace; rb_objspace_t *objspace = &rb_objspace;
return ruby_gc_stress ? Qtrue : Qfalse; return ruby_gc_stress;
} }
/* /*