-
-
Notifications
You must be signed in to change notification settings - Fork 803
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
Thread Safety issue in Moq reported by Infer# report #1347
Comments
This is technically correct, but it really shouldn't matter as it's only a fast-path optimization. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
C:/projects/moq4/src/Moq/SetupCollection.cs:107: warning: Thread Safety Violation
Read/Write race. Non-private method
SetupCollection.FindLast(...)
reads without synchronization from containerthis.Moq.SetupCollection.setups
via call toList
1<!0>.get_Count(). Potentially races with write in method
SetupCollection.Clear()`.Reporting because this access may occur on a background thread.
The text was updated successfully, but these errors were encountered: