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

ruby-changes:29354

From: ko1 <ko1@a...>
Date: Wed, 19 Jun 2013 07:46:01 +0900 (JST)
Subject: [ruby-changes:29354] ko1:r41406 (trunk): * gc.c (rb_objspace::gc_stress): int -> VALUE to store Fixnum object.

ko1	2013-06-19 07:45:41 +0900 (Wed, 19 Jun 2013)

  New Revision: 41406

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

  Log:
    * gc.c (rb_objspace::gc_stress): int -> VALUE to store Fixnum object.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41405)
+++ ChangeLog	(revision 41406)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jun 19 07:44:31 2013  Koichi Sasada  <ko1@a...>
+
+	* gc.c (rb_objspace::gc_stress): int -> VALUE to store Fixnum object.
+
 Wed Jun 19 07:25:35 2013  Koichi Sasada  <ko1@a...>
 
 	* gc.c (make_deferred): clear flags to T_ZOMBIE.
Index: gc.c
===================================================================
--- gc.c	(revision 41405)
+++ gc.c	(revision 41406)
@@ -89,7 +89,7 @@ typedef struct { https://github.com/ruby/ruby/blob/trunk/gc.c#L89
     unsigned int initial_free_min;
     double initial_growth_factor;
 #if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
-    int gc_stress;
+    VALUE gc_stress;
 #endif
 } ruby_gc_params_t;
 
@@ -362,7 +362,7 @@ typedef struct rb_objspace { https://github.com/ruby/ruby/blob/trunk/gc.c#L362
     size_t total_allocated_object_num;
     size_t total_freed_object_num;
     rb_event_flag_t hook_events; /* this place may be affinity with memory cache */
-    int gc_stress;
+    VALUE gc_stress;
 
     struct mark_func_data_struct {
 	void *data;
@@ -388,7 +388,7 @@ typedef struct rb_objspace { https://github.com/ruby/ruby/blob/trunk/gc.c#L388
 #if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
 #define rb_objspace (*GET_VM()->objspace)
 #define ruby_initial_gc_stress	initial_params.gc_stress
-int *ruby_initial_gc_stress_ptr = &ruby_initial_gc_stress;
+VALUE *ruby_initial_gc_stress_ptr = &ruby_initial_gc_stress;
 #else
 static rb_objspace_t rb_objspace = {{GC_MALLOC_LIMIT}};
 int *ruby_initial_gc_stress_ptr = &rb_objspace.gc_stress;

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

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