|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.cext.GC
public class GC
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 |
|---|
public GC()
| Method Detail |
|---|
public static final void mark(IRubyObject obj)
obj - The object to markpublic static final void trigger()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||