@@ -17,16 +17,16 @@ internal class AssemblyManager
17
17
{
18
18
// modified from event handlers below, potentially triggered from different .NET threads
19
19
// therefore this should be a ConcurrentDictionary
20
- private static ConcurrentDictionary < string , ConcurrentDictionary < Assembly , string > > namespaces ;
20
+ private static ConcurrentDictionary < string , ConcurrentDictionary < Assembly , string > > namespaces = new ConcurrentDictionary < string , ConcurrentDictionary < Assembly , string > > ( ) ;
21
21
//private static Dictionary<string, Dictionary<string, string>> generics;
22
22
private static AssemblyLoadEventHandler lhandler ;
23
23
private static ResolveEventHandler rhandler ;
24
24
25
25
// updated only under GIL?
26
- private static Dictionary < string , int > probed ;
26
+ private static Dictionary < string , int > probed = new Dictionary < string , int > ( 32 ) ;
27
27
28
28
// modified from event handlers below, potentially triggered from different .NET threads
29
- private static AssemblyList assemblies ;
29
+ private static AssemblyList assemblies = new AssemblyList ( 16 ) ;
30
30
internal static List < string > pypath ;
31
31
32
32
private AssemblyManager ( )
@@ -40,10 +40,10 @@ private AssemblyManager()
40
40
/// </summary>
41
41
internal static void Initialize ( )
42
42
{
43
- namespaces = new ConcurrentDictionary < string , ConcurrentDictionary < Assembly , string > > ( ) ;
44
- probed = new Dictionary < string , int > ( 32 ) ;
43
+ // namespaces = new ConcurrentDictionary<string, ConcurrentDictionary<Assembly, string>>();
44
+ // probed =
45
45
//generics = new Dictionary<string, Dictionary<string, string>>();
46
- assemblies = new AssemblyList ( 16 ) ;
46
+ // assemblies =
47
47
pypath = new List < string > ( 16 ) ;
48
48
49
49
AppDomain domain = AppDomain . CurrentDomain ;
0 commit comments