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