verify_internal_consistency()
public
Verify internal consistency.
This method is implementation specific. Now this method checks generatioanl
consistency if RGenGC is supported.
static VALUE
gc_verify_internal_consistency(VALUE self)
{
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");
}
return Qnil;
}