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 concurrency bug in AssemblyHelper #407

Merged

Conversation

wangzq
Copy link
Contributor

@wangzq wangzq commented Apr 15, 2024

AssemblyResolve event could be triggered from multiple threads, so using a normal Dictionary may cause infinite loop when TryGetValue is being called and another thread has corrupted its internal state, replace it with ConcurrentDictionary.

bradwilson added a commit to xunit/xunit that referenced this pull request Apr 15, 2024
bradwilson added a commit to xunit/xunit that referenced this pull request Apr 15, 2024
@bradwilson bradwilson merged commit 4315921 into xunit:main Apr 15, 2024
3 checks passed
@bradwilson
Copy link
Member

Thanks!

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