org.jruby
Class RubyGC

java.lang.Object
  extended by org.jruby.RubyGC

public class RubyGC
extends java.lang.Object

GC (Garbage Collection) Module Note: Since we rely on Java's memory model we can't provide the kind of control over garbage collection that MRI provides. Also note that since all Ruby libraries make GC assumptions based on MRI's GC that we decided to no-op explicit collection through these APIs. You can use Java Integration in your libraries to force a Java GC (assuming you really want to).


Constructor Summary
RubyGC()
           
 
Method Summary
static RubyModule createGCModule(Ruby runtime)
           
static IRubyObject disable(IRubyObject recv)
           
static IRubyObject enable(IRubyObject recv)
           
static IRubyObject garbage_collect(IRubyObject recv)
           
static IRubyObject start(IRubyObject recv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RubyGC

public RubyGC()
Method Detail

createGCModule

public static RubyModule createGCModule(Ruby runtime)

start

public static IRubyObject start(IRubyObject recv)

garbage_collect

public static IRubyObject garbage_collect(IRubyObject recv)

enable

public static IRubyObject enable(IRubyObject recv)

disable

public static IRubyObject disable(IRubyObject recv)


Copyright © 2002-2009 JRuby Team. All Rights Reserved.