# | 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) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |