[jdk21u-dev] Withdrawn: 8343426: ConcurrentSkipListMap.spliterator() can no longer split the stream

Satyen Subramaniam ssubramaniam at openjdk.org
Thu Jul 10 00:56:45 UTC 2025


On Tue, 17 Jun 2025 17:28:11 GMT, Satyen Subramaniam <ssubramaniam at openjdk.org> wrote:

> 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.

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.org/jdk21u-dev/pull/1895


More information about the jdk-updates-dev mailing list