stress=(p1)
public
updates GC stress mode.
When GC.stress =
true, GC is invoked for all GC opportunity: all memory and object allocation.
Since it makes Ruby very slow, it is only for debugging.
Show source
static VALUE
gc_stress_set(VALUE self, VALUE bool)
{
rb_objspace_t *objspace = &rb_objspace;
rb_secure(2);
ruby_gc_stress = RTEST(bool);
return bool;
}