mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
gc.c: simplified
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b4be4c7be3
commit
82cd48d7ee
1 changed files with 3 additions and 3 deletions
6
gc.c
6
gc.c
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue