1 write to _loadedModules
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
26
_loadedModules
= (assemblyFileCount == 0) ? Array.Empty<RoModule>() : new RoModule[assemblyFileCount];
7 references to _loadedModules
System.Reflection.MetadataLoadContext (7)
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (7)
47
List<Module> modules = new List<Module>(
_loadedModules
.Length + 1)
51
for (int i = 0; i <
_loadedModules
.Length; i++)
53
RoModule? module = Volatile.Read(ref
_loadedModules
[i]);
80
RoModule? prior = Volatile.Read(ref
_loadedModules
[loadedModulesIndex]);
85
return Interlocked.CompareExchange(ref
_loadedModules
[loadedModulesIndex], newModule, null) ?? newModule;
90
List<RoModule> modules = new List<RoModule>(
_loadedModules
.Length + 1);
114
Interlocked.CompareExchange(ref
_loadedModules
[loadedModuleIndex], newModule, null);