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
/*
* call-seq:
* GC.stress = bool => bool
*
* 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.
*/
static VALUE
gc_stress_set(self, bool)
VALUE self, bool;
{
rb_secure(2);
ruby_gc_stress = RTEST(bool);
return bool;
}