diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gc.c | 7 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Dec 16 18:16:28 2013 Koichi Sasada <ko1@atdot.net> + + * gc.c (gc_verify_internal_consistency): should not use + rb_objspace_each_objects() because it call rest_sweep(). + Mon Dec 16 18:07:30 2013 Koichi Sasada <ko1@atdot.net> * gc.c (rb_objspace_markable_object_p): fix last commit (build error). @@ -4206,7 +4206,12 @@ gc_verify_internal_consistency(VALUE self) data.err_count = 0; #if USE_RGENGC - rb_objspace_each_objects(verify_internal_consistency_i, &data); + { + struct each_obj_args eo_args; + eo_args.callback = verify_internal_consistency_i; + eo_args.data = (void *)&data; + objspace_each_objects((VALUE)&eo_args); + } #endif if (data.err_count != 0) { rb_bug("gc_verify_internal_consistency: found internal consistency.\n"); |