diff --git a/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.CoreCLR.cs b/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.CoreCLR.cs index 90f74e4b867457..8277c404a62c50 100644 --- a/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.CoreCLR.cs +++ b/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.CoreCLR.cs @@ -957,6 +957,7 @@ private unsafe void DispatchContinuations() AsyncDispatcherInfo asyncDispatcherInfo; asyncDispatcherInfo.Next = refDispatcherInfo; asyncDispatcherInfo.NextContinuation = MoveContinuationState(); + asyncDispatcherInfo.CurrentTask = this; refDispatcherInfo = &asyncDispatcherInfo; while (true)