org.jikesrvm.scheduler
Class TimerThread
java.lang.Object
org.jikesrvm.scheduler.SystemThread
org.jikesrvm.scheduler.TimerThread
public class TimerThread
- extends SystemThread
The timer thread. Although we are using purely native threading, threads
need to occasionally be poked for the purposes of sampling and OSR.
It should be noted that the implementation of this class prioritizes
unobtrusiveness and lock-freedom over precision. For example, on any given
timer release some threads may be missed or poked more than once, with the
understanding that if they are missed on one release then they will (with
high probability) not be missed on a future release.
It may be that to make the system scale, more than one timer thread will
be needed. But for now, this should suffice.
Field Summary |
private static int |
verbose
|
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
TimerThread
public TimerThread()
run
public void run()
- Specified by:
run
in class SystemThread
printExceptionAndDie
private static void printExceptionAndDie(Throwable e)