Skip to content

Conversation

@johnou
Copy link
Contributor

@johnou johnou commented Jan 30, 2025

Description of Change

Improve thread safety to avoid possible issues with timsort.

ConcurrentHashMap.newKeySet() uses weakly consistent iterators that do not fail on concurrent modifications

Related issues

Have test cases been added to cover the new functionality?

no

@boring-cyborg boring-cyborg bot added the core changes to core label Jan 30, 2025
@jeremylong
Copy link
Collaborator

@johnou thank you for the PR. Really appreciate this contribution.

@jeremylong jeremylong added this to the 12.1.0 milestone Jan 31, 2025
Copy link
Collaborator

@jeremylong jeremylong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jeremylong jeremylong merged commit d3e43bb into dependency-check:main Jan 31, 2025
10 checks passed
@johnou johnou deleted the bugfix/thread_safe_collections_v2 branch February 1, 2025 16:00
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

core changes to core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants