1 write to _cache
ILCompiler.ReadyToRun (1)
TypeSystem\Mutable\MutableModule.cs (1)
298
_cache
= new Cache(this, assemblyName, assemblyFlags, publicKeyArray, version, hashAlgorithm, moduleToIndex);
22 references to _cache
ILCompiler.ReadyToRun (22)
TypeSystem\Mutable\MutableModule.cs (22)
255
lock (_mutableModule.
_cache
)
260
if (_mutableModule.
_cache
.ExistingEntities.TryGetValue(value, out result))
265
if (_mutableModule.
_cache
._reader != null)
267
_mutableModule.
_cache
.ResetEmitter();
273
var handle = HandleGenerationFunction(_mutableModule.
_cache
._currentBinaryEmitter, value);
274
_mutableModule.
_cache
.ExistingEntities.Add(value, handle);
275
_mutableModule.
_cache
.Entities.Add(handle, value);
276
_mutableModule.
_cache
._values.Add((_cacheIndex, value));
299
TryGetHandle =
_cache
.CreateCacheFunc<TypeSystemEntity>(GetHandleForTypeSystemEntity);
300
TryGetStringHandle =
_cache
.CreateCacheFunc<string>(GetUserStringHandle);
301
TryGetAssemblyRefHandle =
_cache
.CreateCacheFunc<AssemblyNameInfo>(GetAssemblyRefHandle);
339
lock (
_cache
)
341
if (
_cache
.ExistingEntities.TryGetValue(tse, out var handle))
343
var blob =
_cache
.MetadataBlob;
344
if (
_cache
.ExistingEntities.TryGetValue(tse, out handle))
353
public MetadataReader MetadataReader =>
_cache
.Reader;
354
public byte[] MetadataBlob =>
_cache
.MetadataBlob;
378
lock(
_cache
)
380
if (
_cache
.Entities.TryGetValue(MetadataTokens.GetToken(handle), out var result))
387
if (
_cache
.Entities.TryGetValue(MetadataTokens.GetToken(handle), out result))
398
lock(
_cache
)
400
if (
_cache
.Entities.TryGetValue(MetadataTokens.GetToken(handle), out var result))