Skip to content

Conversation

@sharwell
Copy link
Contributor

@sharwell sharwell commented Jan 5, 2022

This exception only occurs in integration test scenarios, but the internal performance test harness is not able to eliminate this false positive automatically.

This change negatively impacts maintainability of code with no end-user impact where functional correctness is critical, and should not be necessary.

@sharwell sharwell requested a review from a team as a code owner January 5, 2022 20:30
@ghost ghost added the Area-IDE label Jan 5, 2022
public Task<bool> Delay(TimeSpan delay, CancellationToken cancellationToken)
{
cancellationToken.ThrowIfCancellationRequested();
if (cancellationToken.IsCancellationRequested)
Copy link
Member

Choose a reason for hiding this comment

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

Could you please add some comments on why we'd go though the trouble to implement it this way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added [PerformanceSensitive] with a text constraint.

This exception only occurs in integration test scenarios, but the
internal performance test harness is not able to eliminate this false
positive automatically.
@genlu
Copy link
Member

genlu commented Jan 6, 2022

I have validated this in RPS. Delay no longer throws OCE
https://dev.azure.com/devdiv/DevDiv/_git/VS/pullrequest/371883

@sharwell sharwell merged commit 7d0d491 into dotnet:main Feb 4, 2022
@sharwell sharwell deleted the remove-fce branch February 4, 2022 18:02
@ghost ghost added this to the Next milestone Feb 4, 2022
@RikkiGibson RikkiGibson modified the milestones: Next, 17.2.P2 Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants