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

Remove unneeded suppression #48277

Merged
merged 3 commits into from
Oct 17, 2020
Merged

Remove unneeded suppression #48277

merged 3 commits into from
Oct 17, 2020

Conversation

Youssef1313
Copy link
Member

Closes #47225

#pragma warning disable IDE0044 // Add readonly modifier - See https://github.com/dotnet/roslyn/issues/47225
private volatile int m_owner;
#pragma warning restore IDE0044 // Add readonly modifier
private readonly int m_owner;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It needs a careful review.
I removed volatile assuming that this can't be modified by multiple threads. If that is not correct, we may need to update the analyzer.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It needs a careful review.
I removed volatile assuming that this can't be modified by multiple threads. If that is not correct, we may need to update the analyzer.

@mavasani, As I'm not 100% sure of the change. So pinging you on this in case this comment was unnoticed.

@jinujoseph jinujoseph added Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. labels Oct 8, 2020
@jinujoseph jinujoseph added this to InQueue in IDE: CommunityPR via automation Oct 8, 2020
@jinujoseph jinujoseph moved this from InQueue to BuddyAssigned in IDE: CommunityPR Oct 8, 2020
IDE: CommunityPR automation moved this from BuddyAssigned to LGTM Oct 15, 2020
@ghost
Copy link

ghost commented Oct 15, 2020

Hello @mavasani!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approval

@mavasani
Copy link
Contributor

@Youssef1313 The CI has failures.

@ghost ghost removed the auto-merge label Oct 15, 2020
@Youssef1313
Copy link
Member Author

@mavasani That's weird. The CI failure sounds correct, but it is unrelated to the change made here. I'm not sure why it's not failing on the current master.

@@ -37,7 +35,7 @@ public bool IsThreadOwnerTrackingEnabled

internal class SpinLockDebugView
{
private MockDesktopSpinLock m_spinLock;
private readonly MockDesktopSpinLock m_spinLock;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been failing in the current master. This line is after restoring IDE0044.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this seems weird indeed. Maybe needs a follow-up investigation..

@mavasani mavasani merged commit ebdaa28 into dotnet:master Oct 17, 2020
IDE: CommunityPR automation moved this from LGTM to Completed Oct 17, 2020
@ghost ghost added this to the Next milestone Oct 17, 2020
@jinujoseph jinujoseph moved this from Completed-Sprint178 to Completed in IDE: CommunityPR Oct 18, 2020
@Youssef1313 Youssef1313 deleted the patch-43 branch October 18, 2020 10:38
@allisonchou allisonchou modified the milestones: Next, 16.9.P2 Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. Feature - IDE0044
Projects
IDE: CommunityPR
  
Completed 2020
Development

Successfully merging this pull request may close these issues.

Field doesn't need to be volatile
5 participants