[前][次][番号順一覧][スレッド一覧]

ruby-changes:29377

From: kazu <ko1@a...>
Date: Wed, 19 Jun 2013 20:53:19 +0900 (JST)
Subject: [ruby-changes:29377] kazu:r41429 (trunk): * gc.c (gc_stress_get): GC.stress can be Fixnum.

kazu	2013-06-19 20:53:07 +0900 (Wed, 19 Jun 2013)

  New Revision: 41429

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41429

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

  Modified files:
    trunk/ChangeLog
    trunk/gc.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41428)
+++ ChangeLog	(revision 41429)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jun 19 20:51:21 2013  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* gc.c (gc_stress_get): GC.stress can be Fixnum.
+
 Wed Jun 19 19:31:30 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (DIGSPERLONG): Don't define if BDIGIT is bigger than long.
Index: gc.c
===================================================================
--- gc.c	(revision 41428)
+++ gc.c	(revision 41429)
@@ -4192,7 +4192,7 @@ gc_stat(int argc, VALUE *argv, VALUE sel https://github.com/ruby/ruby/blob/trunk/gc.c#L4192
 
 /*
  *  call-seq:
- *    GC.stress	    -> true or false
+ *    GC.stress	    -> fixnum, true or false
  *
  *  Returns current status of GC stress mode.
  */
@@ -4201,7 +4201,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/gc.c#L4201
 gc_stress_get(VALUE self)
 {
     rb_objspace_t *objspace = &rb_objspace;
-    return ruby_gc_stress ? Qtrue : Qfalse;
+    return ruby_gc_stress;
 }
 
 /*

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]