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

Comparing jsr166/src/main/java/util/concurrent/LinkedBlockingQueue.java (file contents):
Revision 1.109 by jsr166, Thu Dec 29 22:58:17 2016 UTC vs.
Revision 1.110 by jsr166, Sun Jan 1 22:37:35 2017 UTC

# Line 782 | Line 782 | public class LinkedBlockingQueue<E> exte
782              if ((p = next) == null) return;
783              lastRet = p;
784              next = null;
785 <            final int batchSize = 32;
785 >            final int batchSize = 64;
786              Object[] es = null;
787              int n, len = 1;
788              do {
# Line 958 | Line 958 | public class LinkedBlockingQueue<E> exte
958      void forEachFrom(Consumer<? super E> action, Node<E> p) {
959          // Extract batches of elements while holding the lock; then
960          // run the action on the elements while not
961 <        final int batchSize = 32;       // max number of elements per batch
961 >        final int batchSize = 64;       // max number of elements per batch
962          Object[] es = null;             // container for batch of elements
963          int n, len = 0;
964          do {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines