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 IRubyObject count(ThreadContext context, IRubyObject recv)
           
static RubyModule createGCModule(Ruby runtime)
           
static IRubyObject disable(ThreadContext context, IRubyObject recv)
           
static IRubyObject enable(ThreadContext context, IRubyObject recv)
           
static IRubyObject garbage_collect(ThreadContext context, IRubyObject recv)
           
static IRubyObject start(ThreadContext context, IRubyObject recv)
           
static IRubyObject stress_set(ThreadContext context, IRubyObject recv, IRubyObject arg)
           
static IRubyObject stress(ThreadContext context, 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(ThreadContext context,
                                IRubyObject recv)

garbage_collect

public static IRubyObject garbage_collect(ThreadContext context,
                                          IRubyObject recv)

enable

public static IRubyObject enable(ThreadContext context,
                                 IRubyObject recv)

disable

public static IRubyObject disable(ThreadContext context,
                                  IRubyObject recv)

stress

public static IRubyObject stress(ThreadContext context,
                                 IRubyObject recv)

stress_set

public static IRubyObject stress_set(ThreadContext context,
                                     IRubyObject recv,
                                     IRubyObject arg)

count

public static IRubyObject count(ThreadContext context,
                                IRubyObject recv)


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