public class SortTODAddressStack 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 |
|---|
SortTODAddressStack(SortTODSharedDeque queue)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
Check if the (local and shared) stacks are empty.
|
Address |
pop()
Pop an address from the address stack, return zero if the stack
is empty.
|
void |
push(Address addr)
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 SortTODAddressStack(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(Address addr)
addr - the address to be pushed onto the address queuepublic final Address pop()
public final boolean isEmpty()