1 write to s_maxCacheSize
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Regex.Cache.cs (1)
81
s_maxCacheSize
= value;
6 references to s_maxCacheSize
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\Regex.Cache.cs (6)
71
return
s_maxCacheSize
;
172
if (
s_maxCacheSize
!= 0 && // hot-read of s_maxCacheSize to try to avoid the cost of the dictionary lookup if the cache is disabled
206
if (
s_maxCacheSize
== 0 || s_cacheDictionary.TryGetValue(key, out _))
212
if (s_cacheList.Count ==
s_maxCacheSize
)
217
if (
s_maxCacheSize
<= MaxExamineOnDrop)
271
Debug.Assert(s_cacheList.Count <=
s_maxCacheSize
);