From 8d254db25b9e6810a49324f70ec314eacb2cf8d2 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 16 Dec 2013 09:19:24 +0000 Subject: * gc.c (gc_verify_internal_consistency): should not use rb_objspace_each_objects() because it call rest_sweep(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index 6ee0c48c8e..46cc440572 100644 --- a/gc.c +++ b/gc.c @@ -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"); -- cgit v1.2.3