public class GC
extends java.lang.Object
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 and Description |
---|
GC() |
Modifier and Type | Method and Description |
---|---|
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() |
public static final void mark(IRubyObject obj)
obj
- The object to markpublic static final void trigger()
Copyright © 2002-2009 JRuby Team. All Rights Reserved.