OutOfMemoryError: ThreadLocalRandom.current().doubles().parallel().substream(100).iterator().next()

Brian Goetz brian.goetz at oracle.com
Sun May 19 10:12:40 PDT 2013


This is related to a known issue that we are working on.  But, please do 
file a bug.

On 5/19/2013 12:43 PM, Georgiy Rakov wrote:
> Hello,
>
> following code causes OutOfMemoryError when running on b88:
>
>     import java.util.concurrent.ThreadLocalRandom;
>
>     public class ThreadLocalRandomSubstream {
>          public static void main(String[] argv) {
>
> ThreadLocalRandom.current().doubles().parallel().substream(100).iterator().next();
>
>          }
>     }
>
> Could you please tell if it's a bug.
>
> The code is attached for your convenience.
>
> Thank you,
> Georgiy.
>
>
>


More information about the lambda-dev mailing list