org.jikesrvm.tuningfork
Class ChunkQueue

java.lang.Object
  extended by org.jikesrvm.tuningfork.ChunkQueue

public class ChunkQueue
extends Object

A Queue of chunks intended to keep track of meta-chunks. Therefore it can be implemented using Java-level synchronization and allocation operations to wrap the Chunks in Queue nodes.


Nested Class Summary
private static class ChunkQueue.Node
           
 
Field Summary
private  ChunkQueue.Node head
           
private  ChunkQueue.Node tail
           
 
Constructor Summary
ChunkQueue()
           
 
Method Summary
 RawChunk dequeue()
           
 void enqueue(RawChunk c)
           
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

head

private ChunkQueue.Node head

tail

private ChunkQueue.Node tail
Constructor Detail

ChunkQueue

public ChunkQueue()
Method Detail

enqueue

public void enqueue(RawChunk c)

dequeue

public RawChunk dequeue()

isEmpty

public boolean isEmpty()