Skip to content

Commit

Permalink
Add missing last padding / Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
trustin committed Jun 21, 2014
1 parent a2400d9 commit 5409b56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ final class MpscLinkedQueue<E> extends MpscLinkedQueueTailRef<E> implements Queu

private static final long serialVersionUID = -1878402552271506449L;

long p00, p01, p02, p03, p04, p05, p06, p07;
long p30, p31, p32, p33, p34, p35, p36, p37;

// offer() occurs at the tail of the linked list.
// poll() occurs at the head of the linked list.
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ protected final void setTailRef(MpscLinkedQueueNode<E> tailRef) {

@SuppressWarnings("unchecked")
protected final MpscLinkedQueueNode<E> getAndSetTailRef(MpscLinkedQueueNode<E> tailRef) {
// LOCK XCHG in JDK8, a CAS loop in JDK 7/6
return (MpscLinkedQueueNode<E>) UPDATER.getAndSet(this, tailRef);
}
}

0 comments on commit 5409b56

Please sign in to comment.