stress=(p1)
public
Updates the GC stress mode.
When stress mode is enabled the GC is invoked at every GC
opportunity: all memory and object allocations.
Enabling stress mode makes Ruby very
slow, it is only for debugging.
Show source
static VALUE
gc_stress_set(VALUE self, VALUE flag)
{
rb_objspace_t *objspace = &rb_objspace;
rb_secure(2);
ruby_gc_stress = RTEST(flag);
return flag;
}