5 instantiations of ConcurrentCache
Microsoft.CodeAnalysis (5)
CommandLine\AnalyzerConfigSet.cs (1)
52new ConcurrentCache<List<Section>, AnalyzerConfigOptionsResult>(50, SequenceEqualComparer.Instance); // arbitrary size
Compilation\Compilation.cs (2)
1209ref _getTypeCache, static () => new ConcurrentCache<string, INamedTypeSymbol?>(50, ReferenceEqualityComparer.Instance)); 1240ref _getTypesCache, static () => new ConcurrentCache<string, ImmutableArray<INamedTypeSymbol>>(50, ReferenceEqualityComparer.Instance));
Emit\DebugDocumentsBuilder.cs (1)
33_normalizedPathsCache = new ConcurrentCache<(string, string?), string>(16);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
175new ConcurrentCache<string, (AssemblyIdentity? identity, AssemblyIdentityParts parts)>(1024, ReferenceEqualityComparer.Instance);
8 references to ConcurrentCache
Microsoft.CodeAnalysis (8)
Collections\ConcurrentCache.cs (1)
12internal sealed class ConcurrentCache<TKey, TValue> : CachingBase<ConcurrentCache<TKey, TValue>.Entry>
CommandLine\AnalyzerConfigSet.cs (1)
51private readonly ConcurrentCache<List<Section>, AnalyzerConfigOptionsResult> _optionsCache =
Compilation\Compilation.cs (4)
1162private ConcurrentCache<string, INamedTypeSymbol?>? _getTypeCache; 1164private ConcurrentCache<string, ImmutableArray<INamedTypeSymbol>>? _getTypesCache; 1208var getTypeCache = RoslynLazyInitializer.EnsureInitialized( 1239var getTypesCache = RoslynLazyInitializer.EnsureInitialized(
Emit\DebugDocumentsBuilder.cs (1)
21private readonly ConcurrentCache<(string, string?), string> _normalizedPathsCache;
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
174private static readonly ConcurrentCache<string, (AssemblyIdentity? identity, AssemblyIdentityParts parts)> s_TryParseDisplayNameCache =