org.jikesrvm.scheduler
Class FinalizerThread
java.lang.Object
org.jikesrvm.scheduler.SystemThread
org.jikesrvm.scheduler.FinalizerThread
public class FinalizerThread
- extends SystemThread
Finalizer thread.
This thread is created by RVMThread.boot() at runtime startup.
Its "run" method does the following:
- 1. yield to the gcwaitqueue, until scheduled by GC.
- 2. For all objects on finalize queue, run the finalize() method
- 3. Go to 1
This thread comes out of wait state via notify from the garbage collector
Method Summary |
static void |
boot()
|
void |
run()
Run the finalizer thread (one per RVM) |
static void |
schedule()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
verbose
private static final int verbose
- See Also:
- Constant Field Values
none
private final Object[] none
shouldRun
private static boolean shouldRun
schedLock
private static Monitor schedLock
FinalizerThread
public FinalizerThread()
boot
public static void boot()
schedule
public static void schedule()
run
public void run()
- Run the finalizer thread (one per RVM)
- Specified by:
run
in class SystemThread