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.73 by dl, Fri Jun 17 13:03:45 2016 UTC vs.
Revision 1.74 by jsr166, Tue Jun 28 17:04:12 2016 UTC

# Line 300 | Line 300 | public class ConcurrentLinkedDeque<E>
300                          // Successful CAS is the linearization point
301                          // for e to become an element of this deque,
302                          // and for newNode to become "live".
303 <                        if (p != h) // hop two nodes at a time
304 <                            HEAD.compareAndSet(this, h, newNode);  // Failure OK.
303 >                        if (p != h) // hop two nodes at a time; failure is OK
304 >                            HEAD.weakCompareAndSetVolatile(this, h, newNode);
305                          return;
306                      }
307                      // Lost CAS race to another thread; re-read prev

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines