-
Notifications
You must be signed in to change notification settings - Fork 472
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
Memory leaks in StrongNameUtil #594
Comments
Hi @arashjfz, thanks for reporting this potential issue, and for the accompanying PR.
Am I understanding correctly that your memory analyzer claims that there are millions of At least with the .NET Framework, the assembly cache in (There have recently been changes in .NET Core that means assemblies may be garbage-collected, but we don't currently support any of that; see e. g. #473.) I'm suspecting that your PR, which changes So I am not convinced yet that we should make the change. I think it would be important to first know a little more about your memory analysis. Do you have a small repro code and instructions on how you performed the memory analysis? |
@stakx Thanks for your reply, You are correct. I Found the problem in my code and fix the situation that cause multiple assembly generation. |
In my project I found a memory leaks in StrongNameUtil class
It seams that signedAssemblyCache has a problem and nothing is removed from it.
My memory analyzer says that There is millions of reference from signedAssemblyCache key to AssemblyBuilder assembly
As I checked signedAssemblyCache was the only reference to that instance of AssemblyBuilder assembly. So a ConditionalWeakTable may fix this kind of problem
The text was updated successfully, but these errors were encountered: