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

Comparing jsr166/src/main/java/util/concurrent/LinkedTransferQueue.java (file contents):
Revision 1.125 by jsr166, Thu Dec 29 03:51:47 2016 UTC vs.
Revision 1.126 by jsr166, Thu Dec 29 04:49:39 2016 UTC

# Line 169 | Line 169 | public class LinkedTransferQueue<E> exte
169       * with a given probability per traversal step.
170       *
171       * In any strategy along these lines, because CASes updating
172 <     * fields may fail, the actual slack may exceed targeted
173 <     * slack. However, they may be retried at any time to maintain
174 <     * targets.  Even when using very small slack values, this
175 <     * approach works well for dual queues because it allows all
176 <     * operations up to the point of matching or appending an item
177 <     * (hence potentially allowing progress by another thread) to be
178 <     * read-only, thus not introducing any further contention. As
179 <     * described below, we implement this by performing slack
180 <     * maintenance retries only after these points.
172 >     * fields may fail, the actual slack may exceed targeted slack.
173 >     * However, they may be retried at any time to maintain targets.
174 >     * Even when using very small slack values, this approach works
175 >     * well for dual queues because it allows all operations up to the
176 >     * point of matching or appending an item (hence potentially
177 >     * allowing progress by another thread) to be read-only, thus not
178 >     * introducing any further contention.  As described below, we
179 >     * implement this by performing slack maintenance retries only
180 >     * after these points.
181       *
182       * As an accompaniment to such techniques, traversal overhead can
183       * be further reduced without increasing contention of head

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines