org.jruby
Class RubyGC
java.lang.Object
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).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RubyGC
public RubyGC()
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.