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

Assembly Resolver perf improvement #1218

Merged
merged 8 commits into from
Oct 26, 2017
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@ private Assembly OnResolve(object sender, AssemblyResolveEventArgs args)
}
}
}
}

return null;
this.resolvedAssemblies[args.Name] = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Add this at line:112, because there is exit path at 126 and we should operate on resolvedAssemblies inside lock (this.resolvedAssemblies) block.

Copy link
Member Author

Choose a reason for hiding this comment

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

Its already under lock block. As per discussion, added this statement in one catch block.

Copy link
Contributor

Choose a reason for hiding this comment

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

Add EqtTrace.IsInfoEnabled check for main flows.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

return null;
}
}

/// <summary>
Expand Down