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 events map initialization to prevent race conditions #4251

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

mensfeld
Copy link
Contributor

Initialization upon miss can lead to hard to debug scenarios where potentially a concurrent array will leak out but the value in the @events will be different.

as described here: ruby-concurrency/concurrent-ruby#970

Initialization upon miss can lead to hard to debug scenarios where potentially a concurrent array will leak out but the value in the `@events` will be different.

as described here: ruby-concurrency/concurrent-ruby#970
@rmosolgo
Copy link
Owner

Thanks for the fix!

@rmosolgo rmosolgo added this to the 2.0.16 milestone Nov 22, 2022
@rmosolgo rmosolgo merged commit 17bf301 into rmosolgo:master Nov 22, 2022
@mensfeld mensfeld deleted the patch-1 branch November 22, 2022 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants