14 references to Threshold
Microsoft.CodeAnalysis.Workspaces (14)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (14)
175
if (sb.Capacity >
Threshold
)
177
sb.Capacity =
Threshold
;
193
if (count >
Threshold
&& pool.TrimOnFree)
211
if (count >
Threshold
)
225
if (set.Count >
Threshold
)
243
if (count >
Threshold
&& pool.TrimOnFree)
255
if (stack.Count >
Threshold
)
275
if (count >
Threshold
)
292
if (map.Count >
Threshold
)
309
if (map.Count >
Threshold
)
328
if (trim && list.Capacity >
Threshold
)
330
list.Capacity =
Threshold
;
345
if (trim && list.Capacity >
Threshold
)
347
list.Capacity =
Threshold
;