@@ -17,13 +17,14 @@ internal class AssemblyManager
1717 {
1818 // modified from event handlers below, potentially triggered from different .NET threads
1919 // therefore this should be a ConcurrentDictionary
20- private static ConcurrentDictionary < string , ConcurrentDictionary < Assembly , string > > namespaces ;
20+ private static ConcurrentDictionary < string , ConcurrentDictionary < Assembly , string > > namespaces =
21+ new ConcurrentDictionary < string , ConcurrentDictionary < Assembly , string > > ( ) ;
2122 //private static Dictionary<string, Dictionary<string, string>> generics;
2223 private static AssemblyLoadEventHandler lhandler ;
2324 private static ResolveEventHandler rhandler ;
2425
2526 // updated only under GIL?
26- private static Dictionary < string , int > probed ;
27+ private static Dictionary < string , int > probed = new Dictionary < string , int > ( 32 ) ;
2728
2829 // modified from event handlers below, potentially triggered from different .NET threads
2930 private static AssemblyList assemblies ;
@@ -40,9 +41,6 @@ private AssemblyManager()
4041 /// </summary>
4142 internal static void Initialize ( )
4243 {
43- namespaces = new ConcurrentDictionary < string , ConcurrentDictionary < Assembly , string > > ( ) ;
44- probed = new Dictionary < string , int > ( 32 ) ;
45- //generics = new Dictionary<string, Dictionary<string, string>>();
4644 assemblies = new AssemblyList ( 16 ) ;
4745 pypath = new List < string > ( 16 ) ;
4846
0 commit comments