diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-02 21:34:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-02 21:34:14 +0000 |
commit | 82cd48d7ee799ff1cd37c0ea0be2ab0d0aea9a2e (patch) | |
tree | 9878a12bf60f265691559eae8c5bc487a5f1f6f1 /gc.c | |
parent | b4be4c7be315998f8301c21636aa7b4ab8c9e47f (diff) | |
download | ruby-82cd48d7ee799ff1cd37c0ea0be2ab0d0aea9a2e.tar.gz |
gc.c: simplified
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3768,7 +3768,7 @@ wmap_aref(VALUE self, VALUE wmap) static VALUE gc_count(VALUE self) { - return UINT2NUM((&rb_objspace)->count); + return UINT2NUM(rb_objspace.count); } /* @@ -3839,7 +3839,7 @@ gc_stat(int argc, VALUE *argv, VALUE self) static VALUE gc_malloc_allocated_size(VALUE self) { - return UINT2NUM((&rb_objspace)->malloc_params.allocated_size); + return UINT2NUM(rb_objspace.malloc_params.allocated_size); } /* @@ -3854,7 +3854,7 @@ gc_malloc_allocated_size(VALUE self) static VALUE gc_malloc_allocations(VALUE self) { - return UINT2NUM((&rb_objspace)->malloc_params.allocations); + return UINT2NUM(rb_objspace.malloc_params.allocations); } #endif |