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