12 writes to _executionContext
System.Private.CoreLib (12)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (4)
717currentThread._executionContext = suspendingExecutionContext; 1339thread._executionContext = previousExecCtx; 1421thread._executionContext = previousExecCtx; 1487thread._executionContext = previousExecCtx;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (7)
121currentThread._executionContext = executionContext.ShallowClone(isFlowSuppressed: true); 137currentThread._executionContext = executionContext.ShallowClone(isFlowSuppressed: false); 318Thread.CurrentThread._executionContext = executionContext; 335currentThread._executionContext = contextToRestore; 352currentThread._executionContext = null; 360currentThread._executionContext = null; 545Thread.CurrentThread._executionContext =
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
897currentThread._executionContext = null;
26 references to _executionContext
System.Private.CoreLib (26)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (10)
234RootExecutionContext = thread._executionContext; 247ExecutionContext? currentExecutionCtx = thread._executionContext; 279StackState->LeafExecutionContext = curThread._executionContext; 715if (suspendingExecutionContext != currentThread._executionContext) 1284ExecutionContext? currentExecCtx = thread._executionContext; 1299execCtx = curThread._executionContext; 1314ExecutionContext? currentExecCtx = thread._executionContext; 1337if (previousExecCtx != thread._executionContext) 1392ExecutionContext? threadExecCtx = thread._executionContext; 1459ExecutionContext? threadExecCtx = thread._executionContext;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (2)
33ExecutionContext? previousExecutionCtx = currentThread._executionContext; 49ExecutionContext? currentExecutionCtx = currentThread._executionContext;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (14)
56ExecutionContext? executionContext = Thread.CurrentThread._executionContext; 81return Thread.CurrentThread._executionContext; 90ExecutionContext? executionContext = currentThread._executionContext; 116ExecutionContext? executionContext = currentThread._executionContext ?? Default; 131ExecutionContext? executionContext = currentThread._executionContext; 142ExecutionContext? executionContext = Thread.CurrentThread._executionContext; 172ExecutionContext? previousExecutionCtx0 = currentThread._executionContext; 213ExecutionContext? currentExecutionCtx = currentThread._executionContext; 246ExecutionContext? currentExecutionCtx = currentThread._executionContext; 294ExecutionContext? currentExecutionCtx = currentThread._executionContext; 348ExecutionContext? currentExecutionCtx = currentThread._executionContext; 368Debug.Assert(Thread.CurrentThread._executionContext == null, "ThreadPool thread not on Default ExecutionContext."); 467ExecutionContext? current = Thread.CurrentThread._executionContext; 481ExecutionContext? current = Thread.CurrentThread._executionContext;