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

XMLWordPrintable

      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.

            Assignee:
            Paul Sandoz
            Reporter:
            Georgiy Rakov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: