Ty vm. You don't think this has anything to do with my bug from 6 months ago, where the parallel stream caused OOME, but the sequential ones short-circuited correctly? I can pull up the thread if you don't recall.
On Fri, May 23, 2025, 11:26 AM Viktor Klang <viktor.kl...@oracle.com> wrote: > I've opened a PR to prevent this from occurring: > https://github.com/openjdk/jdk/pull/25418/files > > However, there's an argument to be made that an unbounded Spliterator (as > obtained by Random::ints(…)) should not report the SIZED and SUBSIZED > characteristics, as it is indeed not sized. I'll open a separate Issue for > that next week. > > Cheers, > √ > > > *Viktor Klang* > Software Architect, Java Platform Group > Oracle > ------------------------------ > *From:* core-libs-dev <core-libs-dev-r...@openjdk.org> on behalf of > Viktor Klang <viktor.kl...@oracle.com> > *Sent:* Friday, 23 May 2025 14:56 > *To:* David Alayachew <davidalayac...@gmail.com>; core-libs-dev < > core-libs-dev@openjdk.org> > *Subject:* Re: [External] : Could someone answer this question about > Gatherers? > > Hi David, > > This definitely sounds like a bug, so I've opened: > https://bugs.openjdk.org/browse/JDK-8357647 > > Thanks, > √ > > > *Viktor Klang* > Software Architect, Java Platform Group > Oracle > > ------------------------------ > *From:* David Alayachew <davidalayac...@gmail.com> > *Sent:* Friday, 23 May 2025 12:44 > *To:* Viktor Klang <viktor.kl...@oracle.com>; core-libs-dev < > core-libs-dev@openjdk.org> > *Subject:* [External] : Could someone answer this question about > Gatherers? > > Hello Core Libs Dev Team, > > A post came up on StackOverflow recently that asked a question about > Gatherers -- > https://stackoverflow.com/questions/79622707/why-doesnt-my-gatherer-short-circuit-the-stream-if-the-source-is-an-intstream > <https://urldefense.com/v3/__https://stackoverflow.com/questions/79622707/why-doesnt-my-gatherer-short-circuit-the-stream-if-the-source-is-an-intstream__;!!ACWV5N9M2RV99hQ!KhxjMRzkOiiBNBaL_BG18YPs2hMlI1zI-y2lkZGQrJYHDCG0Zx14MAejks8opab_5tJD_M-o-lSxqLXHeeHWUuJtIS8$> > > Just raising it here, as I think the only folks equipped to answer that > question are people already on this mailing list. > > Thank you for your time and help! > David Alayachew >