[jdk17u-dev] RFR: 8343426: ConcurrentSkipListMap.spliterator() can no longer split the stream
Satyen Subramaniam
ssubramaniam at openjdk.org
Tue Jun 17 17:34:08 UTC 2025
Backporting JDK-8343426: ConcurrentSkipListMap.spliterator() can no longer split the stream. Since Java 10, the trySplit() method for spliterators for the ConcurrentSkipListMap always returned null, causing parallel streams to be broken for ConcurrentSkipListMap and ConcurrentSkipListSet since. This change fixes the logic for considering the head.node.next field in addition to head.node. Ran GHA Sanity Checks, local Tier 1 and 2, and new test directly. Patch is clean.
-------------
Commit messages:
- Backport 2b57f402c46104d4aba784a891ba90604f5e9e4c
Changes: https://git.openjdk.org/jdk17u-dev/pull/3664/files
Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=3664&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8343426
Stats: 40 lines in 2 files changed: 31 ins; 0 del; 9 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/3664.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/3664/head:pull/3664
PR: https://git.openjdk.org/jdk17u-dev/pull/3664
More information about the jdk-updates-dev
mailing list