aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c7
1 files changed, 6 insertions, 1 deletions
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");