RFR: 8328316: Finisher cannot emit if stream is sequential and integrator returned false

Viktor Klang vklang at openjdk.org
Wed Mar 20 20:24:31 UTC 2024


Adds differentiation between direct and transitive short circuiting which could prevent pushing downstream in the finisher for built-ins that were not `collect()`.

Creating this as a draft PR for now, just need to run some benchmarks to validate no significant regressions first.

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

Commit messages:
 - Adds differentiation between direct and transitive short circutiting for Gatherers

Changes: https://git.openjdk.org/jdk/pull/18351/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18351&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8328316
  Stats: 70 lines in 2 files changed: 66 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/18351.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18351/head:pull/18351

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


More information about the core-libs-dev mailing list