static public Method

GC.start

GC.start                      nil
gc.garbage_collect            nil
ObjectSpace.garbage_collect   nil

Initiates garbage collection, unless manually disabled.

Source Code

/*
*  call-seq:
*     GC.start                     => nil
*     gc.garbage_collect           => nil
*     ObjectSpace.garbage_collect  => nil
*
*  Initiates garbage collection, unless manually disabled.
*
*/

VALUE
rb_gc_start()
{
   rb_gc();
   return Qnil;
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.