On Fri, 23 May 2025 15:15:30 GMT, Viktor Klang <vkl...@openjdk.org> wrote:

> While it could be argued that unbounded Spliterators should not report SIZED 
> / SUBSIZED, GatherSink should report an unknown emission size, so switching 
> to downstream.begin(-1) rather than downstream.begin(size).
> 
> Includes a regression test which yields an OOME if this change is omitted.

This pull request has now been integrated.

Changeset: aea32ec5
Author:    Viktor Klang <vkl...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/aea32ec5060a2e57947dc3e5d14613241e223ce4
Stats:     40 lines in 2 files changed: 37 ins; 1 del; 2 mod

8357647: Stream gatherers forward upstream size information to downstream

Reviewed-by: liach, alanb

-------------

PR: https://git.openjdk.org/jdk/pull/25418

Reply via email to