org.mmtk.plan
Class TraceWriteBuffer
java.lang.Object
org.mmtk.plan.TransitiveClosure
org.mmtk.plan.TraceWriteBuffer
public final class TraceWriteBuffer
- extends TransitiveClosure
This class is used to push values in one direction during a trace. It
was designed for use in mutators that use write barriers to push
work to collector threads during concurrent tracing.
- See Also:
TraceLocal
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
private final WriteBuffer buffer
TraceWriteBuffer
public TraceWriteBuffer(Trace trace)
- Constructor
- Parameters:
trace
- The global trace class to use.
flush
public void flush()
- Flush the buffer to the trace.
isFlushed
public boolean isFlushed()
- Returns:
true
if the buffer is flushed.
processNode
public void processNode(ObjectReference object)
- Enqueue an object during a trace.
- Overrides:
processNode
in class TransitiveClosure
- Parameters:
object
- The object to enqueue