-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
8-repo-lambda
java.lang.OutOfMemoryError is caused by following code:
import java.util.concurrent.ThreadLocalRandom;
public class ThreadLocalRandomSubstream {
public static void main(String[] argv) {
ThreadLocalRandom.current().doubles().parallel().substream(100).iterator().next();
}
}
The code is attached for your convenience. This was reproduced on b88.
import java.util.concurrent.ThreadLocalRandom;
public class ThreadLocalRandomSubstream {
public static void main(String[] argv) {
ThreadLocalRandom.current().doubles().parallel().substream(100).iterator().next();
}
}
The code is attached for your convenience. This was reproduced on b88.
- relates to
-
JDK-8012987 Optimizations for Stream.limit/substream
- Closed