diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-06 15:42:14 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-06 15:42:14 +0000 |
commit | 2006bfe2f42d0458e061a1798680cb78b80fdbe8 (patch) | |
tree | 426134d44b578b9a319e3082c57d29cfb251c6e3 /gc.c | |
parent | 6a9b242a80fbb9b116df93f4ad16c5b603f57713 (diff) | |
download | ruby-2006bfe2f42d0458e061a1798680cb78b80fdbe8.tar.gz |
* gc.c: rename is_dying_object() to is_garbage_object().
* gc.h: rb_objspace_garbage_object_p() as an exported function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -2329,8 +2329,9 @@ is_swept_object(rb_objspace_t *objspace, VALUE ptr) } } +/* garbage objects will be collected soon. */ static inline int -is_dying_object(rb_objspace_t *objspace, VALUE ptr) +is_garbage_object(rb_objspace_t *objspace, VALUE ptr) { if (!is_lazy_sweeping(heap_eden) || is_swept_object(objspace, ptr) || @@ -2352,7 +2353,7 @@ is_live_object(rb_objspace_t *objspace, VALUE ptr) return FALSE; } - if (!is_dying_object(objspace, ptr)) { + if (!is_garbage_object(objspace, ptr)) { return TRUE; } else { @@ -2382,10 +2383,10 @@ rb_objspace_markable_object_p(VALUE obj) } int -rb_objspace_dying_object_p(VALUE obj) +rb_objspace_garbage_object_p(VALUE obj) { rb_objspace_t *objspace = &rb_objspace; - return is_dying_object(objspace, obj); + return is_garbage_object(objspace, obj); } /* |