Skip to content

Remove async method validation#51557

Merged
sharwell merged 2 commits intodotnet:mainfrom
sharwell:rm-validation
Mar 18, 2021
Merged

Remove async method validation#51557
sharwell merged 2 commits intodotnet:mainfrom
sharwell:rm-validation

Conversation

@sharwell
Copy link
Contributor

@sharwell sharwell commented Mar 1, 2021

This check is responsible for 700MB allocations during a build of dotnet/roslyn-analyzers (3% of total), and duplicates checks already running in multiple compile-time analyzers (e.g. VSTHRD100, VSTHRD101).

This check is responsible for 700MB allocations during a build of
dotnet/roslyn-analyzers, and duplicates checks already running in
multiple compile-time analyzers.
@sharwell sharwell requested a review from a team as a code owner March 1, 2021 14:55
@ghost ghost added the Area-Compilers label Mar 1, 2021
Base automatically changed from master to main March 3, 2021 23:53
);
}

[Fact, WorkItem(13120, "https://github.com/dotnet/roslyn/issues/13120")]
Copy link
Member

Choose a reason for hiding this comment

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

Looking at this issue, it seems that the runtime check was preventing VS crash.

After removing this, if someone ignored the RSxxxx rule that's going to be implemented in roslyn-analyzers - or using a version without this rule -, will that crash VS?

We should make sure VS doesn't crash.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should make sure VS doesn't crash.

Analyzers run out-of-process now, which mitigates the IDE crash.

@sharwell
Copy link
Contributor Author

@dotnet/roslyn-compiler for reviews

Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

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

LGTM Thanks (iteration 2)

@jcouv jcouv self-assigned this Mar 18, 2021
@sharwell sharwell merged commit 76f905f into dotnet:main Mar 18, 2021
@ghost ghost added this to the Next milestone Mar 18, 2021
@sharwell sharwell deleted the rm-validation branch March 18, 2021 17:41
@allisonchou allisonchou modified the milestones: Next, 16.10.P2 Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants