hg: lambda/lambda/jdk: Optimization for slice when pipeline is SIZED and

paul.sandoz at oracle.com paul.sandoz at oracle.com
Thu May 2 10:05:31 PDT 2013

Changeset: 8be9094c8fd8
Author:    psandoz
Date:      2013-05-02 18:57 +0200
URL:       http://hg.openjdk.java.net/lambda/lambda/jdk/rev/8be9094c8fd8

Optimization for slice when pipeline is SIZED and
source spliterator is SIZED and SUBSIZED.
This also avoids OOME errors in certain cases when
limit is used to limit streams of very large counts
of elements.

! src/share/classes/java/util/stream/AbstractPipeline.java
! src/share/classes/java/util/stream/PipelineHelper.java
! src/share/classes/java/util/stream/SliceOps.java
! src/share/classes/java/util/stream/StreamSpliterators.java
+ test-ng/boottests/java/util/stream/SliceSpliteratorTest.java
! test-ng/tests/org/openjdk/tests/java/util/stream/InfiniteStreamWithLimitOpTest.java

More information about the lambda-dev mailing list