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. Looks okay, I assume you'll bump the copyright headers before integration. ------------- Marked as reviewed by alanb (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/25418#pullrequestreview-2868874619