Skip to content

Commit

Permalink
Avoid boxing allocations for async in Tier0 (dotnet/coreclr#22984)
Browse files Browse the repository at this point in the history
Commit migrated from dotnet/coreclr@dc0d072
  • Loading branch information
benaadams authored and jkotas committed Mar 29, 2019
1 parent 80d6d4d commit 260e3ca
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ public void AwaitOnCompleted<TAwaiter, TStateMachine>(
/// <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
Expand Down

0 comments on commit 260e3ca

Please sign in to comment.