diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-18 22:45:41 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-18 22:45:41 +0000 |
commit | bfac961beda98f90463a77c9944f0dc9fa095b10 (patch) | |
tree | 7b200ef91acf05ef5b3bab7a78952ddac5086428 /gc.c | |
parent | d879849b6e874557c27d6a63e50ea9d0af04acef (diff) | |
download | ruby-bfac961beda98f90463a77c9944f0dc9fa095b10.tar.gz |
* gc.c (rb_objspace::gc_stress): int -> VALUE to store Fixnum object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -89,7 +89,7 @@ typedef struct { 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 { 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 { #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; |