9 writes to _executionContext
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (7)
121currentThread._executionContext = executionContext.ShallowClone(isFlowSuppressed: true); 137currentThread._executionContext = executionContext.ShallowClone(isFlowSuppressed: false); 316Thread.CurrentThread._executionContext = executionContext; 333currentThread._executionContext = contextToRestore; 350currentThread._executionContext = null; 358currentThread._executionContext = null; 543Thread.CurrentThread._executionContext =
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
988currentThread._executionContext = null;
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (1)
747thread._executionContext = previousExecCtx;
23 references to _executionContext
System.Private.CoreLib (23)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (2)
33ExecutionContext? previousExecutionCtx = currentThread._executionContext; 49ExecutionContext? currentExecutionCtx = currentThread._executionContext;
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; 170ExecutionContext? previousExecutionCtx0 = currentThread._executionContext; 211ExecutionContext? currentExecutionCtx = currentThread._executionContext; 244ExecutionContext? currentExecutionCtx = currentThread._executionContext; 292ExecutionContext? currentExecutionCtx = currentThread._executionContext; 346ExecutionContext? currentExecutionCtx = currentThread._executionContext; 366Debug.Assert(Thread.CurrentThread._executionContext == null, "ThreadPool thread not on Default ExecutionContext."); 465ExecutionContext? current = Thread.CurrentThread._executionContext; 479ExecutionContext? current = Thread.CurrentThread._executionContext;
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (7)
38_previousExecutionCtx = _thread._executionContext; 51ExecutionContext? currentExecutionCtx = _thread._executionContext; 200ExecutionContext = curThread._executionContext; 692ExecutionContext? currentExecCtx = thread._executionContext; 706execCtx = thread._executionContext; 722ExecutionContext? currentExecCtx = thread._executionContext; 745if (previousExecCtx != thread._executionContext)