javax.realtime
Class GarbageCollector
java.lang.Object
javax.realtime.GarbageCollector
public abstract class GarbageCollector
- extends Object
Jamaica Realtime Specification for Java class GarbageCollector.
|
Constructor Summary |
GarbageCollector()
Deprecated. RTSJ V1.0.1 the user application cannot create its
own garbage collector. |
|
Method Summary |
abstract RelativeTime |
getPreemptionLatency()
getPreemptionLatency returns the maximum time required for any
schedulable object to preempt ongoing garbage collection
activity. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GarbageCollector
public GarbageCollector()
- Deprecated. RTSJ V1.0.1 the user application cannot create its
own garbage collector.
- Constructor to create an instance of GarbageCollector.
getPreemptionLatency
public abstract RelativeTime getPreemptionLatency()
- getPreemptionLatency returns the maximum time required for any
schedulable object to preempt ongoing garbage collection
activity.
Thread of class NoHeapRealtimeThread or async event handlers with
option no-heap will not suffer from this preemption delay since
these threads can always executed indepently of the stat of the
garbage collector.
Any other thread may be blocked by the garbage collector for the
time returned by this function.
For JamaicaVM, any thread can preemt garbage collection activity
at the normal thread preemption delay specified via the Jamaica
builder option -threadPreemption , typically a few hundred
machine instructions.
- Returns:
- the GC preemption latency
aicas GmbH, Karlsruhe - Germany www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.