提交 2466e512 编写于 作者: S Sam Harwell

Avoid using PerformanceSensitiveAttribute in pooled object types

上级 87cd631b
......@@ -4,7 +4,6 @@
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.PooledObjects
{
......@@ -271,9 +270,6 @@ public ImmutableArray<U> ToDowncastedImmutable<U>()
/// <summary>
/// Realizes the array and disposes the builder in one operation.
/// </summary>
[PerformanceSensitive(
"https://github.com/dotnet/roslyn/issues/23582",
Constraint = "Callers creating arrays with known capacities need to be able to create an " + nameof(ImmutableArray<T>) + " without a full copy.")]
public ImmutableArray<T> ToImmutableAndFree()
{
ImmutableArray<T> result;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册