Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Avoid boxing allocations for async in Tier0 (#22984)
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams authored and jkotas committed Mar 29, 2019
1 parent ecf92d0 commit dc0d072
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 dc0d072

Please sign in to comment.