diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-27 08:56:48 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-27 08:56:48 +0000 |
commit | 9e733b909167e0ef0cf3766f3e54c9dc4e180ce8 (patch) | |
tree | 23562ab17db941fd77ef6d6c83dc09253583b7fb /gc.c | |
parent | f8994603b3058e9514d84ea603e4efae3b5d6986 (diff) | |
download | ruby-9e733b909167e0ef0cf3766f3e54c9dc4e180ce8.tar.gz |
* gc.c (gc_mark_stacked_objects): check only when check_mode > 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3908,7 +3908,7 @@ gc_mark_stacked_objects(rb_objspace_t *objspace) if (!mstack->index) return; while (pop_mark_stack(mstack, &obj)) { - if (!gc_marked(objspace, obj)) { + if (RGENGC_CHECK_MODE > 0 && !gc_marked(objspace, obj)) { rb_bug("gc_mark_stacked_objects: %p (%s) is infant, but not marked.", (void *)obj, obj_type_name(obj)); } gc_mark_children(objspace, obj); |