Skip to content

Remove unneeded suppression#48277

Merged
mavasani merged 3 commits intodotnet:masterfrom
Youssef1313:patch-43
Oct 17, 2020
Merged

Remove unneeded suppression#48277
mavasani merged 3 commits intodotnet:masterfrom
Youssef1313:patch-43

Conversation

@Youssef1313
Copy link
Member

Closes #47225

@Youssef1313 Youssef1313 requested a review from a team as a code owner October 3, 2020 14:39
@Youssef1313 Youssef1313 closed this Oct 3, 2020
@Youssef1313 Youssef1313 reopened this Oct 3, 2020
#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
@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.

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
@ghost ghost added this to the Next milestone Oct 17, 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
@sharwell sharwell added the Feature - IDE0044 Make field readonly label May 22, 2023
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 Make field readonly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Field doesn't need to be volatile

5 participants