Integrated: 8357647 : Stream gatherers forward upstream size information to downstream
Viktor Klang
vklang at openjdk.org
Tue May 27 09:19:57 UTC 2025
On Fri, 23 May 2025 15:15:30 GMT, Viktor Klang <vklang at 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 <vklang at 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
More information about the core-libs-dev
mailing list