15 writes to m_contingentProperties
System.Private.CoreLib (15)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (15)
448m_contingentProperties = new ContingentProperties() // can't have children, so just instantiate directly 1465ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 1479return Volatile.Read(ref m_contingentProperties) ?? InitializeContingentProperties(); 1483Interlocked.CompareExchange(ref m_contingentProperties, new ContingentProperties(), null); 1494m_contingentProperties ??= new ContingentProperties(); 1504ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 1661ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 1766ContingentProperties? cp = Volatile.Read(ref m_contingentProperties); 2025return Volatile.Read(ref m_contingentProperties)?.m_exceptionsHolder?.GetCancellationExceptionDispatchInfo(); // may be null 2031Volatile.Read(ref m_contingentProperties)?.m_exceptionsHolder?.MarkAsHandled(calledFromFinalizer: false); 2201ContingentProperties? cp = Volatile.Read(ref m_contingentProperties); 2249cp = Volatile.Read(ref m_contingentProperties); // need to re-read after updating state 2311ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 2372TaskExceptionHolder? exceptionHolder = Volatile.Read(ref task.m_contingentProperties)!.m_exceptionsHolder; 3465ContingentProperties? cp = Volatile.Read(ref m_contingentProperties);
36 references to m_contingentProperties
System.Private.CoreLib (36)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task_T.cs (2)
379ContingentProperties? props = m_contingentProperties; 403if (m_contingentProperties?.m_parent != null)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (33)
131private Task? ParentForDebugger => m_contingentProperties?.m_parent; // Private property used by a debugger to access this Task's parent 667Debug.Assert(m_contingentProperties == null || m_contingentProperties.m_capturedContext == null, 727ContingentProperties? props = m_contingentProperties; 810Task? parent = m_contingentProperties?.m_parent; 1004Task? parentTask = m_contingentProperties?.m_parent; 1262(m_contingentProperties != null) && 1263(m_contingentProperties.m_exceptionsHolder != null) && 1264(m_contingentProperties.m_exceptionsHolder.ContainsFaultList), 1267m_contingentProperties.m_exceptionsHolder.MarkAsHandled(false); 1484return m_contingentProperties; 1694return m_contingentProperties?.m_capturedContext ?? ExecutionContext.Default; 1862(m_contingentProperties != null) && 1863(m_contingentProperties.m_exceptionsHolder != null) && 1864(m_contingentProperties.m_exceptionsHolder.ContainsFaultList), 1868m_contingentProperties.m_exceptionsHolder.MarkAsHandled(false); 1998Debug.Assert(m_contingentProperties != null && m_contingentProperties.m_exceptionsHolder != null, "ExceptionRecorded should imply this"); 2002return m_contingentProperties.m_exceptionsHolder.CreateExceptionObject(false, canceledException); 2017return m_contingentProperties!.m_exceptionsHolder!.GetExceptionDispatchInfos(); 2097Task? parent = m_contingentProperties?.m_parent; 2132if (m_contingentProperties == null) 2144Debug.Assert(userDelegateExecute || m_contingentProperties != null); 2153ContingentProperties props = m_contingentProperties!; 2274ContingentProperties? cp = m_contingentProperties; 2292Task? parent = m_contingentProperties?.m_parent; 2309Debug.Assert(childTask.m_contingentProperties?.m_parent == this, "ProcessChildCompletion should only be called for a child of this task"); 2572m_contingentProperties!.m_cancellationToken == exceptionAsOce.CancellationToken) 3402Debug.Assert(m_contingentProperties is null || m_contingentProperties.m_cancellationToken == default); 3423Debug.Assert(m_contingentProperties!.m_cancellationToken == default); 3429m_contingentProperties.m_cancellationToken = tokenToRecord; 3502ContingentProperties? props = m_contingentProperties;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (1)
341Task.ContingentProperties? cp = continuationTask.m_contingentProperties; // no need to volatile read, as we only care about the token, which is only assignable at construction