RFR: 8343426: ConcurrentSkipListMap.spliterator() can no longer split the stream

Viktor Klang vklang at openjdk.org
Tue Nov 12 15:53:18 UTC 2024


On Tue, 12 Nov 2024 15:41:36 GMT, kabutz <duke at openjdk.org> wrote:

>>> @kabutz I think @DougLea identified some potential edge-cases with the proposed solution, so I added his suggested diff to the JBS Issue for reference.
>> 
>> Indeed, I didn't check what happens when we create a spliterator on an empty collection.
>
>> @kabutz Let me know how you want to proceed. 👍
> 
> 've made the changes and sent another PR to the branch holding the changes. Hope that's the right way of doing it...

@kabutz Might actually be easier to drop the other PR and add the commits to your branch [8343426-cslm-spliterator-bug](https://github.com/kabutz/jdk/tree/8343426-cslm-spliterator-bug) so this PR is updated.

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

PR Comment: https://git.openjdk.org/jdk/pull/21820#issuecomment-2470897103


More information about the core-libs-dev mailing list