summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index cf7c830f82..f2cd75f309 100644
--- a/gc.c
+++ b/gc.c
@@ -4252,21 +4252,21 @@ verify_internal_consistency_i(void *page_start, void *page_end, size_t stride, v
static VALUE
gc_verify_internal_consistency(VALUE self)
{
+#if USE_RGENGC
struct verify_internal_consistency_struct data;
data.objspace = &rb_objspace;
data.err_count = 0;
-#if USE_RGENGC
{
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");
}
+#endif
return Qnil;
}