Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory leak at AssemblyLoadContext unload (#69334)
I have found there was a small memory leak when unloading AssemblyLoadContext. A customer had a quite extreme testing case that ran millions of iterations of creating an AssemblyLoadContext, loading some assemblies into it and then unloading it. After 80 million iterations on their machine with 8GB memory, the testing app was getting out of memory. Using PerfView, I was able to locate the source of the leak. It was a missing destruction of the Module::m_pJitInlinerTrackingMap. Co-authored-by: Jan Vorlicek <janvorli@microsoft.com>
- Loading branch information