Skip to content

Commit

Permalink
Put AO back to AwaitUnsafeOnCompleted (#90980)
Browse files Browse the repository at this point in the history
Co-authored-by: EgorBo <egorbo@gmail.com>
  • Loading branch information
github-actions[bot] and EgorBo committed Aug 23, 2023
1 parent 01d66a8 commit 3155448
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ internal static void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(
AwaitUnsafeOnCompleted(ref awaiter, box);
}

// Tier0 codegen for this function may still allocate (while FullOpts won't).
// TODO: remove once https://github.com/dotnet/runtime/issues/90965 is implemented
[MethodImpl(MethodImplOptions.AggressiveOptimization)]
internal static void AwaitUnsafeOnCompleted<TAwaiter>(
ref TAwaiter awaiter, IAsyncStateMachineBox box)
where TAwaiter : ICriticalNotifyCompletion
Expand Down

0 comments on commit 3155448

Please sign in to comment.