ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentLinkedQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ConcurrentLinkedQueue.java (file contents):
Revision 1.143 by jsr166, Thu Dec 29 23:08:16 2016 UTC vs.
Revision 1.144 by jsr166, Mon Jan 2 00:10:14 2017 UTC

# Line 265 | Line 265 | public class ConcurrentLinkedQueue<E> ex
265  
266      /**
267       * Tries to CAS pred.next (or head, if pred is null) from c to p.
268 +     * Caller must ensure that we're not unlinking the trailing node.
269       */
270      private boolean tryCasSuccessor(Node<E> pred, Node<E> c, Node<E> p) {
271 +        // assert p != null;
272          // assert c.item == null;
273          // assert c != p;
274          if (pred != null)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines