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

Fix --fulllog in ILC/crossgen2 #69996

Merged
merged 2 commits into from
May 31, 2022
Merged

Fix --fulllog in ILC/crossgen2 #69996

merged 2 commits into from
May 31, 2022

Conversation

MichalStrehovsky
Copy link
Member

Fixes issue reported in #66716 (comment).

We create a hashset for the purpose of avoiding this problem, check it, but never add to it.

Cc @dotnet/ilc-contrib @dotnet/crossgen-contrib

Fixes issue reported in dotnet#66716 (comment).

We create a hashset for the purpose of avoiding this problem, check it, but never add to it.
Comment on lines 160 to 163
if (!combinedNodesReported.Contains(combinedNode))
{
logNodeVisitor.VisitCombinedNode(combinedNode);
combinedNodesReported.Add(combinedNode);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (!combinedNodesReported.Contains(combinedNode))
{
logNodeVisitor.VisitCombinedNode(combinedNode);
combinedNodesReported.Add(combinedNode);
if (combinedNodesReported.Add(combinedNode))
{
logNodeVisitor.VisitCombinedNode(combinedNode);

Copy link
Member

Choose a reason for hiding this comment

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

(If reordering the check and call is ok.)

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point!

@jkotas jkotas merged commit 62f5d4e into dotnet:main May 31, 2022
@MichalStrehovsky MichalStrehovsky deleted the fulllog branch June 1, 2022 01:46
@ghost ghost locked as resolved and limited conversation to collaborators Jul 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants