1 write to _cache
ILCompiler.ReadyToRun (1)
TypeSystem\Mutable\MutableModule.cs (1)
297
_cache
= new Cache(this, assemblyName, assemblyFlags, publicKeyArray, version, hashAlgorithm, moduleToIndex);
22 references to _cache
ILCompiler.ReadyToRun (22)
TypeSystem\Mutable\MutableModule.cs (22)
254
lock (_mutableModule.
_cache
)
259
if (_mutableModule.
_cache
.ExistingEntities.TryGetValue(value, out result))
264
if (_mutableModule.
_cache
._reader != null)
266
_mutableModule.
_cache
.ResetEmitter();
272
var handle = HandleGenerationFunction(_mutableModule.
_cache
._currentBinaryEmitter, value);
273
_mutableModule.
_cache
.ExistingEntities.Add(value, handle);
274
_mutableModule.
_cache
.Entities.Add(handle, value);
275
_mutableModule.
_cache
._values.Add((_cacheIndex, value));
298
TryGetHandle =
_cache
.CreateCacheFunc<TypeSystemEntity>(GetHandleForTypeSystemEntity);
299
TryGetStringHandle =
_cache
.CreateCacheFunc<string>(GetUserStringHandle);
300
TryGetAssemblyRefHandle =
_cache
.CreateCacheFunc<AssemblyNameInfo>(GetAssemblyRefHandle);
338
lock (
_cache
)
340
if (
_cache
.ExistingEntities.TryGetValue(tse, out var handle))
342
var blob =
_cache
.MetadataBlob;
343
if (
_cache
.ExistingEntities.TryGetValue(tse, out handle))
352
public MetadataReader MetadataReader =>
_cache
.Reader;
353
public byte[] MetadataBlob =>
_cache
.MetadataBlob;
377
lock(
_cache
)
379
if (
_cache
.Entities.TryGetValue(MetadataTokens.GetToken(handle), out var result))
386
if (
_cache
.Entities.TryGetValue(MetadataTokens.GetToken(handle), out result))
397
lock(
_cache
)
399
if (
_cache
.Entities.TryGetValue(MetadataTokens.GetToken(handle), out var result))