-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Make Thread.VolatileRead and Thread.VolatileWrite obsolete #99382
Conversation
src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs
Outdated
Show resolved
Hide resolved
Tagging subscribers to this area: @mangod9 Issue DetailsThis PR obsoletes I am implementing the fixer for the diagnostic ID in dotnet/roslyn-analyzers#7043. The main reason I want to get this PR merged before completing the fixer, is to confirm
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the feedback about EditorBrowsable, LGTM. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Thank you!
Should this have the needs breaking change doc label? |
@jeffhandley, @ericstj, do we treat every [Obsolete] as a breaking change to be documented? |
Added When you commit this breaking change:
Tagging @dotnet/compat for awareness of the breaking change. |
Yes, since it will be source breaking (new warnings - for some as error). Of course this one is a low impact one since it just requires a rename and a fixer is planned. If we don't want the breaking change then don't make the APIs obsolete. |
The breaking change doc is taken care of with dotnet/docs#40834. |
This PR obsoletes
Thread.VolatileRead
as well asThread.VolatileWrite
in favor ofVolatile.Read
andVolatile.Write
respectively, as per #27997.I am implementing the fixer for the diagnostic ID in dotnet/roslyn-analyzers#7043. The main reason I want to get this PR merged before completing the fixer, is to confirm
SYSLIB0054
as the diagnostic ID.