提交 fba4833d 编写于 作者: J Jared Parsons

Remove one suppression

上级 34b7d179
...@@ -53,18 +53,19 @@ public bool Contains(int i) ...@@ -53,18 +53,19 @@ public bool Contains(int i)
private static bool Contains(SmallConcurrentSetOfInts set, int i) private static bool Contains(SmallConcurrentSetOfInts set, int i)
{ {
SmallConcurrentSetOfInts? current = set;
do do
{ {
// PERF: Not testing for unoccupied slots since it adds complexity. The extra comparisons // PERF: Not testing for unoccupied slots since it adds complexity. The extra comparisons
// would slow down this inner loop such that any benefit of an 'early out' would be lost. // would slow down this inner loop such that any benefit of an 'early out' would be lost.
if (set._v1 == i || set._v2 == i || set._v3 == i || set._v4 == i) if (current._v1 == i || current._v2 == i || current._v3 == i || current._v4 == i)
{ {
return true; return true;
} }
set = set._next!; current = current._next;
} }
while (set != null); while (current != null);
return false; return false;
} }
......
...@@ -24,7 +24,6 @@ namespace Microsoft.CodeAnalysis.PooledObjects ...@@ -24,7 +24,6 @@ namespace Microsoft.CodeAnalysis.PooledObjects
internal delegate TReturn Func<TArg, TReturn>(TArg arg); internal delegate TReturn Func<TArg, TReturn>(TArg arg);
#endif #endif
/// <summary> /// <summary>
/// Generic implementation of object pooling pattern with predefined pool size limit. The main /// Generic implementation of object pooling pattern with predefined pool size limit. The main
/// purpose is that limited number of frequently used objects can be kept in the pool for /// purpose is that limited number of frequently used objects can be kept in the pool for
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册