Skip to content

Add paranoia checks and more logging for a failure case#61898

Merged
CyrusNajmabadi merged 1 commit intodotnet:mainfrom
CyrusNajmabadi:constructedMethod
Jun 14, 2022
Merged

Add paranoia checks and more logging for a failure case#61898
CyrusNajmabadi merged 1 commit intodotnet:mainfrom
CyrusNajmabadi:constructedMethod

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

Seeing a failure in telemetry. Adding more info to track down what case it may be.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner June 14, 2022 21:59
@ghost ghost added the Area-IDE label Jun 14, 2022
Comment on lines +94 to +98
if (!method.Equals(method.ConstructedFrom))
continue;

if (method.Arity == 0)
continue;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

these two checks exactly match the condition checked for here:

if (!ReferenceEquals(this, ConstructedFrom) || this.Arity == 0)

just making sure we don't violate this ourselves.

@CyrusNajmabadi CyrusNajmabadi enabled auto-merge June 14, 2022 22:57
@CyrusNajmabadi CyrusNajmabadi merged commit d1427b1 into dotnet:main Jun 14, 2022
@ghost ghost added this to the Next milestone Jun 14, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the constructedMethod branch June 15, 2022 16:57
@RikkiGibson RikkiGibson modified the milestones: Next, 17.3 P3 Jun 28, 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