зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
f8994603b3
Коммит
9e733b9091
|
@ -1,3 +1,7 @@
|
|||
Wed Nov 27 17:54:57 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (gc_mark_stacked_objects): check only when check_mode > 0.
|
||||
|
||||
Wed Nov 27 16:07:19 2013 Aman Gupta <ruby@tmm1.net>
|
||||
|
||||
* test/ruby/test_gc.rb (class TestGc): Fix warning in
|
||||
|
|
2
gc.c
2
gc.c
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче