public class SortTODObjectReferenceStack extends LocalDeque
headqueue, tail, tailBufferEndBUFFER_MASK, BUFFER_SIZE, HEAD_INITIAL_VALUE, LOG_PAGES_PER_BUFFER, META_DATA_SIZE, NEXT_FIELD_OFFSET, PAGES_PER_BUFFER, TAIL_INITIAL_VALUE, USABLE_BUFFER_BYTES| Constructor and Description |
|---|
SortTODObjectReferenceStack(SortTODSharedDeque queue)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
Check if the (local and shared) stacks are empty.
|
ObjectReference |
pop()
Pop an address from the address stack, return zero if the stack
is empty.
|
void |
push(ObjectReference object)
Push an address onto the address stack.
|
void |
sort()
Sort the address on the shared stack.
|
checkHeadInsert, flushLocal, uncheckedHeadInsertcheckDequeue, headStarved, resetLocal, uncheckedDequeuebufferSentinel, checkTailInsert, isFlushed, normalizeTail, reset, uncheckedTailInsertbufferEnd, bufferFirst, bufferLast, bufferLast, bufferLastOffset, bufferOffset, bufferStartpublic SortTODObjectReferenceStack(SortTODSharedDeque queue)
queue - The shared stack to which this stack will append
its buffers (when full or flushed) and from which it will acquire new
buffers when it has exhausted its own.public final void sort()
public final void push(ObjectReference object)
object - the object to be pushed onto the object queuepublic final ObjectReference pop()
public final boolean isEmpty()