org.jruby.cext
Class GC

java.lang.Object
  extended by org.jruby.cext.GC

public class GC
extends java.lang.Object

The cext GC keeps track of native handles and associates them with their corresponding Java objects to avoid garbage-collection while either is in use. It will remove unused references when a thread exits native code or the VM runs out of memory.


Constructor Summary
GC()
           
 
Method Summary
static void mark(IRubyObject obj)
          This is an upcall from the C++ stub to mark objects that are only strongly reachable from a C VALUE instance.
static void trigger()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GC

public GC()
Method Detail

mark

public static final void mark(IRubyObject obj)
This is an upcall from the C++ stub to mark objects that are only strongly reachable from a C VALUE instance.

Parameters:
obj - The object to mark

trigger

public static final void trigger()


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