# | Line 545 | Line 545 | public class LinkedTransferQueue<E> exte | |
---|---|---|
545 | ||
546 | /** | |
547 | * Tries to CAS pred.next (or head, if pred is null) from c to p. | |
548 | + | * Caller must ensure that we're not unlinking the trailing node. |
549 | */ | |
550 | private boolean tryCasSuccessor(Node pred, Node c, Node p) { | |
551 | + | // assert p != null; |
552 | // assert c != p; | |
553 | if (pred != null) | |
554 | return pred.casNext(c, p); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |