15 writes to m_contingentProperties
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (15)
377m_contingentProperties = new ContingentProperties() // can't have children, so just instantiate directly 1394ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 1408return Volatile.Read(ref m_contingentProperties) ?? InitializeContingentProperties(); 1412Interlocked.CompareExchange(ref m_contingentProperties, new ContingentProperties(), null); 1423m_contingentProperties ??= new ContingentProperties(); 1433ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 1586ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 1691ContingentProperties? cp = Volatile.Read(ref m_contingentProperties); 1950return Volatile.Read(ref m_contingentProperties)?.m_exceptionsHolder?.GetCancellationExceptionDispatchInfo(); // may be null 1956Volatile.Read(ref m_contingentProperties)?.m_exceptionsHolder?.MarkAsHandled(calledFromFinalizer: false); 2126ContingentProperties? cp = Volatile.Read(ref m_contingentProperties); 2174cp = Volatile.Read(ref m_contingentProperties); // need to re-read after updating state 2236ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 2297TaskExceptionHolder? exceptionHolder = Volatile.Read(ref task.m_contingentProperties)!.m_exceptionsHolder; 3389ContingentProperties? cp = Volatile.Read(ref m_contingentProperties);
36 references to m_contingentProperties
System.Private.CoreLib (36)
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 596Debug.Assert(m_contingentProperties == null || m_contingentProperties.m_capturedContext == null, 656ContingentProperties? props = m_contingentProperties; 739Task? parent = m_contingentProperties?.m_parent; 933Task? parentTask = m_contingentProperties?.m_parent; 1191(m_contingentProperties != null) && 1192(m_contingentProperties.m_exceptionsHolder != null) && 1193(m_contingentProperties.m_exceptionsHolder.ContainsFaultList), 1196m_contingentProperties.m_exceptionsHolder.MarkAsHandled(false); 1413return m_contingentProperties; 1619return m_contingentProperties?.m_capturedContext ?? ExecutionContext.Default; 1787(m_contingentProperties != null) && 1788(m_contingentProperties.m_exceptionsHolder != null) && 1789(m_contingentProperties.m_exceptionsHolder.ContainsFaultList), 1793m_contingentProperties.m_exceptionsHolder.MarkAsHandled(false); 1923Debug.Assert(m_contingentProperties != null && m_contingentProperties.m_exceptionsHolder != null, "ExceptionRecorded should imply this"); 1927return m_contingentProperties.m_exceptionsHolder.CreateExceptionObject(false, canceledException); 1942return m_contingentProperties!.m_exceptionsHolder!.GetExceptionDispatchInfos(); 2022Task? parent = m_contingentProperties?.m_parent; 2057if (m_contingentProperties == null) 2069Debug.Assert(userDelegateExecute || m_contingentProperties != null); 2078ContingentProperties props = m_contingentProperties!; 2199ContingentProperties? cp = m_contingentProperties; 2217Task? parent = m_contingentProperties?.m_parent; 2234Debug.Assert(childTask.m_contingentProperties?.m_parent == this, "ProcessChildCompletion should only be called for a child of this task"); 2496m_contingentProperties!.m_cancellationToken == exceptionAsOce.CancellationToken) 3326Debug.Assert(m_contingentProperties is null || m_contingentProperties.m_cancellationToken == default); 3347Debug.Assert(m_contingentProperties!.m_cancellationToken == default); 3353m_contingentProperties.m_cancellationToken = tokenToRecord; 3426ContingentProperties? props = m_contingentProperties;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task_T.cs (2)
379ContingentProperties? props = m_contingentProperties; 403if (m_contingentProperties?.m_parent != null)
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