7 instantiations of Continuation
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.cs (2)
29state.SentinelContinuation = sentinelContinuation = new Continuation(); 45state.SentinelContinuation = sentinelContinuation = new Continuation();
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (5)
151Continuation newContinuation = new Continuation { Data = new byte[dataSize], GCData = new object[numGCRefs] }; 170Continuation newContinuation = new Continuation { Data = new byte[dataSize], GCData = gcData }; 189Continuation newContinuation = new Continuation { Data = new byte[dataSize], GCData = gcData }; 539Continuation finalContinuation = new Continuation(); 564Continuation finalContinuation = new Continuation
44 references to Continuation
System.Private.CoreLib (44)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.cs (2)
27Continuation? sentinelContinuation = state.SentinelContinuation; 43Continuation? sentinelContinuation = state.SentinelContinuation;
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (41)
77public Continuation? Next; 78public delegate*<Continuation, Continuation?> Resume; 136private static void AsyncSuspend(Continuation continuation) => throw new UnreachableException(); 142public Continuation? SentinelContinuation; 149private static Continuation AllocContinuation(Continuation prevContinuation, nuint numGCRefs, nuint dataSize) 151Continuation newContinuation = new Continuation { Data = new byte[dataSize], GCData = new object[numGCRefs] }; 156private static unsafe Continuation AllocContinuationMethod(Continuation prevContinuation, nuint numGCRefs, nuint dataSize, MethodDesc* method) 170Continuation newContinuation = new Continuation { Data = new byte[dataSize], GCData = gcData }; 175private static unsafe Continuation AllocContinuationClass(Continuation prevContinuation, nuint numGCRefs, nuint dataSize, MethodTable* methodTable) 189Continuation newContinuation = new Continuation { Data = new byte[dataSize], GCData = gcData }; 209static abstract Continuation GetContinuationState(T task); 210static abstract void SetContinuationState(T task, Continuation value); 211static abstract bool SetCompleted(T task, Continuation continuation); 252public static Continuation GetContinuationState(ThunkTask<T> task) => (Continuation)task.m_stateObject!; 253public static void SetContinuationState(ThunkTask<T> task, Continuation value) 258public static bool SetCompleted(ThunkTask<T> task, Continuation continuation) 324public static Continuation GetContinuationState(ThunkTask task) => (Continuation)task.m_stateObject!; 325public static void SetContinuationState(ThunkTask task, Continuation value) 330public static bool SetCompleted(ThunkTask task, Continuation continuation) 348Continuation continuation = TOps.GetContinuationState(task); 354Continuation? newContinuation = continuation.Resume(continuation); 369Continuation nextContinuation = UnwindToPossibleHandler(continuation); 414private static Continuation UnwindToPossibleHandler(Continuation continuation) 427Continuation headContinuation = UnlinkHeadContinuation(out INotifyCompletion? notifier); 457private static Continuation UnlinkHeadContinuation(out INotifyCompletion? notifier) 463Continuation sentinelContinuation = state.SentinelContinuation!; 464Continuation head = sentinelContinuation.Next!; 469private static bool QueueContinuationFollowUpActionIfNecessary<T, TOps>(T task, Continuation continuation) where T : Task where TOps : IThunkTaskOps<T> 537private static Task<T?> FinalizeTaskReturningThunk<T>(Continuation continuation) 539Continuation finalContinuation = new Continuation(); 562private static Task FinalizeTaskReturningThunk(Continuation continuation) 564Continuation finalContinuation = new Continuation 575private static ValueTask<T?> FinalizeValueTaskReturningThunk<T>(Continuation continuation) 582private static ValueTask FinalizeValueTaskReturningThunk(Continuation continuation)
src\System\StubHelpers.cs (1)
1595internal static Continuation? AsyncCallContinuation() => throw new UnreachableException(); // Unconditionally expanded intrinsic