javax.realtime
Class MarkSweepGarbageCollector

java.lang.Object
  |
  +--javax.realtime.GarbageCollector
        |
        +--javax.realtime.MarkSweepGarbageCollector

public class MarkSweepGarbageCollector
extends GarbageCollector

MarkSweepGarbageCollector provides a means of interfacing with the Mark and Sweep precise garbage collector written by Karen.


Constructor Summary
(package private) MarkSweepGarbageCollector()
           
 
Method Summary
 javax.realtime.RelativeTime getPreemptionLatency()
          Preemption latency is a measure of the maximum time a RealtimeThread may have to wait for the collector to reach a preemption-safe point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkSweepGarbageCollector

MarkSweepGarbageCollector()
Method Detail

getPreemptionLatency

public javax.realtime.RelativeTime getPreemptionLatency()
Description copied from class: GarbageCollector
Preemption latency is a measure of the maximum time a RealtimeThread may have to wait for the collector to reach a preemption-safe point. Instances of RealtimeThread are allowed to preempt the garbage collector (instances of NoHeapRealtimeThread preempt immediately but instances of RealtimeThread must wait until the collector reaches a preemption-safe point).

Specified by:
getPreemptionLatency in class GarbageCollector
Returns:
The preempting latency of the garbage collection algorithm represented by this if applicable. May return zero, if there is no collector available.