提交 260e3ca2 编写于 作者: B Ben Adams 提交者: Jan Kotas

Avoid boxing allocations for async in Tier0 (dotnet/coreclr#22984)



Commit migrated from https://github.com/dotnet/coreclr/commit/dc0d0721aca6c6b1da99346dfb95de78d7c83d6f
上级 80d6d4d8
......@@ -399,6 +399,8 @@ public void SetStateMachine(IAsyncStateMachine stateMachine)
/// <typeparam name="TStateMachine">Specifies the type of the state machine.</typeparam>
/// <param name="awaiter">The awaiter.</param>
/// <param name="stateMachine">The state machine.</param>
// AggressiveOptimization to workaround boxing allocations in Tier0 until: https://github.com/dotnet/coreclr/issues/14474
[MethodImpl(MethodImplOptions.AggressiveOptimization)]
public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(
ref TAwaiter awaiter, ref TStateMachine stateMachine)
where TAwaiter : ICriticalNotifyCompletion
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册