3 instantiations of Continuation
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.cs (2)
31Continuation? sentinelContinuation = state.SentinelContinuation ??= new Continuation(); 51Continuation? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (1)
348Continuation? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
218 references to Continuation
System.Private.CoreLib (218)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.cs (2)
31Continuation? sentinelContinuation = state.SentinelContinuation ??= new Continuation(); 51Continuation? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (13)
235internal static void ReplaceOrAddRuntimeAsyncContinuationTimestamp(Continuation curContinuation, Continuation newContinuation) 252internal static void TryAddRuntimeAsyncContinuationChainTimestamps(Continuation continuationChain) 258Continuation? nc = continuationChain; 267internal static void TryAddRuntimeAsyncContinuationChainTimestamps(Continuation continuationChain, Continuation timestampSource) 273Continuation? nc = continuationChain; 282internal static void RemoveRuntimeAsyncContinuationTimestamp(Continuation continuation) 294internal static void RemoveRuntimeAsyncContinuationChainTimestamps(Continuation continuation, uint count) 302Continuation? nc = continuation; 311internal static void UpdateRuntimeAsyncTaskTimestamp(Task task, Continuation timestampSource) 349internal static void RemoveRuntimeAsyncTask(Task task, Continuation continuationChain) 359Continuation? nc = continuationChain;
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (64)
50public delegate*<Continuation, ref byte, Continuation?> Resume; 66public Continuation? Next; 144public Continuation? NextContinuation; 172internal static extern Continuation? ResumeInterpreterContinuation(Continuation cont, ref byte resultStorage); 179private static void AsyncSuspend(Continuation continuation) => throw new UnreachableException(); 187private static Continuation? AsyncCallContinuation() => throw new UnreachableException(); 247public Continuation? SentinelContinuation; 298private static unsafe Continuation AllocContinuation(Continuation prevContinuation, MethodTable* contMT) 303Continuation newContinuation = (Continuation)RuntimeTypeHandle.InternalAllocNoChecks(contMT); 310private static unsafe Continuation AllocContinuationMethod(Continuation prevContinuation, MethodTable* contMT, int keepAliveOffset, MethodDesc* method) 313Continuation newContinuation = (Continuation)RuntimeTypeHandle.InternalAllocNoChecks(contMT); 319private static unsafe Continuation AllocContinuationClass(Continuation prevContinuation, MethodTable* contMT, int keepAliveOffset, MethodTable* methodTable) 323Continuation newContinuation = (Continuation)RuntimeTypeHandle.InternalAllocNoChecks(contMT); 348Continuation? sentinelContinuation = state.SentinelContinuation ??= new Continuation(); 396private Continuation MoveContinuationState() 399Debug.Assert(stateObject is Continuation); 401return Unsafe.As<Continuation>(stateObject); 404private void SetContinuationState(Continuation value) 428Continuation sentinelContinuation = state.SentinelContinuation!; 429Continuation headContinuation = sentinelContinuation.Next!; 475Continuation nextUserContinuation = headContinuation.Next!; 512internal void InstrumentedHandleSuspended(AsyncInstrumentation.Flags flags, ref RuntimeAsyncAwaitState state, Continuation? newContinuation = null) 516Continuation? nextContinuation = state.SentinelContinuation!.Next; 572Continuation curContinuation = asyncDispatcherInfo.NextContinuation; 573Continuation? nextContinuation = curContinuation.Next; 580Continuation? newContinuation = curContinuation.ResumeInfo->Resume(curContinuation, ref resultLoc); 595Continuation? handlerContinuation = UnwindToPossibleHandler(asyncDispatcherInfo.NextContinuation, ex, ref unwindedFrames); 676Continuation curContinuation = asyncDispatcherInfo.NextContinuation; 679Continuation? nextContinuation = curContinuation.Next; 687Continuation? newContinuation = RuntimeAsyncInstrumentationHelpers.ResumeContinuation(ref asyncDispatcherInfo, flags, curContinuation, ref resultLoc); 706Continuation? handlerContinuation = UnwindToPossibleHandler(asyncDispatcherInfo.NextContinuation, ex, ref unwindedFrames); 765private static unsafe Continuation? UnwindToPossibleHandler(Continuation? continuation, Exception ex, ref uint unwindedFrames) 786private bool QueueContinuationFollowUpActionIfNecessary(Continuation continuation) 868Continuation? nextContinuation = state.SentinelContinuation!.Next; 1209public static void QueueSuspendedRuntimeAsyncContext(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags, Continuation curContinuation, Continuation nextContinuation) 1226public static void AwaitSuspendedRuntimeAsyncContext(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags, Continuation curContinuation, Continuation newContinuation, Continuation? nextContinuation) 1259public static void UnwindRuntimeAsyncMethodUnhandledException(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags, Exception ex, Continuation curContinuation, uint unwindedFrames) 1280public static void UnwindRuntimeAsyncMethodHandledException(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags, Continuation curContinuation, uint unwindedFrames) 1302public static void ResumeRuntimeAsyncMethod(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags, Continuation curContinuation) 1319public static void CompleteRuntimeAsyncMethod(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags, Continuation curContinuation) 1341public static Continuation? ResumeContinuation(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags, Continuation curContinuation, ref byte resultLoc) 1368public static void SuspendAsyncContext(ref AsyncDispatcherInfo info, Continuation curContinuation) 1378public static void SuspendAsyncContext(Continuation curContinuation, Continuation newContinuation) 1394public static void AsyncMethodUnhandledException(Task? task, Exception ex, Continuation curContinuation) 1404public static void AsyncMethodHandledException(Continuation curContinuation, uint unwindedFrames) 1409public static void ResumeAsyncMethod(ref AsyncDispatcherInfo info, Continuation curContinuation) 1417public static void CompleteAsyncMethod(Continuation curContinuation) 1422public static void HandleSuspended(Continuation? nextContinuation, Continuation? newContinuation) 1437public static void HandleSuspendedFailed(Task task, Continuation? nextContinuation)
src\System\Runtime\CompilerServices\AsyncProfiler.CoreCLR.cs (139)
15public static void Create(ulong id, Continuation nextContinuation) 86public static void Suspend(ref AsyncDispatcherInfo info, Continuation nextContinuation) 148public static Continuation? Dispatch(ref AsyncDispatcherInfo info, Continuation curContinuation, ref byte resultLoc) 153return ((delegate*<Continuation, ref byte, Continuation?>)(dispatcher))(curContinuation, ref resultLoc); 168private static unsafe Continuation? Continuation_Wrapper_0(Continuation continuation, ref byte resultLoc) 174private static unsafe Continuation? Continuation_Wrapper_1(Continuation continuation, ref byte resultLoc) 180private static unsafe Continuation? Continuation_Wrapper_2(Continuation continuation, ref byte resultLoc) 186private static unsafe Continuation? Continuation_Wrapper_3(Continuation continuation, ref byte resultLoc) 192private static unsafe Continuation? Continuation_Wrapper_4(Continuation continuation, ref byte resultLoc) 198private static unsafe Continuation? Continuation_Wrapper_5(Continuation continuation, ref byte resultLoc) 204private static unsafe Continuation? Continuation_Wrapper_6(Continuation continuation, ref byte resultLoc) 210private static unsafe Continuation? Continuation_Wrapper_7(Continuation continuation, ref byte resultLoc) 216private static unsafe Continuation? Continuation_Wrapper_8(Continuation continuation, ref byte resultLoc) 222private static unsafe Continuation? Continuation_Wrapper_9(Continuation continuation, ref byte resultLoc) 228private static unsafe Continuation? Continuation_Wrapper_10(Continuation continuation, ref byte resultLoc) 234private static unsafe Continuation? Continuation_Wrapper_11(Continuation continuation, ref byte resultLoc) 240private static unsafe Continuation? Continuation_Wrapper_12(Continuation continuation, ref byte resultLoc) 246private static unsafe Continuation? Continuation_Wrapper_13(Continuation continuation, ref byte resultLoc) 252private static unsafe Continuation? Continuation_Wrapper_14(Continuation continuation, ref byte resultLoc) 258private static unsafe Continuation? Continuation_Wrapper_15(Continuation continuation, ref byte resultLoc) 264private static unsafe Continuation? Continuation_Wrapper_16(Continuation continuation, ref byte resultLoc) 270private static unsafe Continuation? Continuation_Wrapper_17(Continuation continuation, ref byte resultLoc) 276private static unsafe Continuation? Continuation_Wrapper_18(Continuation continuation, ref byte resultLoc) 282private static unsafe Continuation? Continuation_Wrapper_19(Continuation continuation, ref byte resultLoc) 288private static unsafe Continuation? Continuation_Wrapper_20(Continuation continuation, ref byte resultLoc) 294private static unsafe Continuation? Continuation_Wrapper_21(Continuation continuation, ref byte resultLoc) 300private static unsafe Continuation? Continuation_Wrapper_22(Continuation continuation, ref byte resultLoc) 306private static unsafe Continuation? Continuation_Wrapper_23(Continuation continuation, ref byte resultLoc) 312private static unsafe Continuation? Continuation_Wrapper_24(Continuation continuation, ref byte resultLoc) 318private static unsafe Continuation? Continuation_Wrapper_25(Continuation continuation, ref byte resultLoc) 324private static unsafe Continuation? Continuation_Wrapper_26(Continuation continuation, ref byte resultLoc) 330private static unsafe Continuation? Continuation_Wrapper_27(Continuation continuation, ref byte resultLoc) 336private static unsafe Continuation? Continuation_Wrapper_28(Continuation continuation, ref byte resultLoc) 342private static unsafe Continuation? Continuation_Wrapper_29(Continuation continuation, ref byte resultLoc) 348private static unsafe Continuation? Continuation_Wrapper_30(Continuation continuation, ref byte resultLoc) 354private static unsafe Continuation? Continuation_Wrapper_31(Continuation continuation, ref byte resultLoc) 362wrappers[0] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_0; 363wrappers[1] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_1; 364wrappers[2] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_2; 365wrappers[3] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_3; 366wrappers[4] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_4; 367wrappers[5] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_5; 368wrappers[6] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_6; 369wrappers[7] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_7; 370wrappers[8] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_8; 371wrappers[9] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_9; 372wrappers[10] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_10; 373wrappers[11] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_11; 374wrappers[12] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_12; 375wrappers[13] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_13; 376wrappers[14] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_14; 377wrappers[15] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_15; 378wrappers[16] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_16; 379wrappers[17] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_17; 380wrappers[18] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_18; 381wrappers[19] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_19; 382wrappers[20] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_20; 383wrappers[21] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_21; 384wrappers[22] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_22; 385wrappers[23] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_23; 386wrappers[24] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_24; 387wrappers[25] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_25; 388wrappers[26] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_26; 389wrappers[27] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_27; 390wrappers[28] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_28; 391wrappers[29] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_29; 392wrappers[30] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_30; 393wrappers[31] = (nint)(delegate*<Continuation, ref byte, Continuation?>)&Continuation_Wrapper_31; 435public Continuation? Continuation; 502public static void EmitEvent(AsyncThreadContext context, long currentTimestamp, ulong id, Continuation? asyncCallstack) 507public static void EmitEvent(AsyncThreadContext context, long currentTimestamp, AsyncEventID eventID, ulong id, Continuation? asyncCallstack) 512public static void EmitEvent(AsyncThreadContext context, long currentTimestamp, AsyncEventID eventID, ulong id, AsyncCallstackType type, Continuation? asyncCallstack) 517public static void EmitEvent(AsyncThreadContext context, long currentTimestamp, long delta, AsyncEventID eventID, ulong id, AsyncCallstackType type, Continuation? asyncCallstack)