Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improve thread safety issue #7338 alternative #7367

Merged

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
Owner

@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
Owner

@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 jeremylong:main Jan 31, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core changes to core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants