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

Comparing jsr166/src/main/java/util/concurrent/ConcurrentLinkedDeque.java (file contents):
Revision 1.85 by jsr166, Mon Dec 26 19:54:45 2016 UTC vs.
Revision 1.86 by jsr166, Wed Dec 28 04:52:10 2016 UTC

# Line 654 | Line 654 | public class ConcurrentLinkedDeque<E>
654       */
655      final Node<E> succ(Node<E> p) {
656          // TODO: should we skip deleted nodes here?
657 <        Node<E> q = p.next;
658 <        return (p == q) ? first() : q;
657 >        if (p == (p = p.next))
658 >            p = first();
659 >        return p;
660      }
661  
662      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines