15 writes to m_contingentProperties
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (15)
303m_contingentProperties = new ContingentProperties() // can't have children, so just instantiate directly 1316ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 1330return Volatile.Read(ref m_contingentProperties) ?? InitializeContingentProperties(); 1334Interlocked.CompareExchange(ref m_contingentProperties, new ContingentProperties(), null); 1345m_contingentProperties ??= new ContingentProperties(); 1355ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 1508ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 1613ContingentProperties? cp = Volatile.Read(ref m_contingentProperties); 1871return Volatile.Read(ref m_contingentProperties)?.m_exceptionsHolder?.GetCancellationExceptionDispatchInfo(); // may be null 1877Volatile.Read(ref m_contingentProperties)?.m_exceptionsHolder?.MarkAsHandled(calledFromFinalizer: false); 2047ContingentProperties? cp = Volatile.Read(ref m_contingentProperties); 2095cp = Volatile.Read(ref m_contingentProperties); // need to re-read after updating state 2157ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 2218TaskExceptionHolder? exceptionHolder = Volatile.Read(ref task.m_contingentProperties)!.m_exceptionsHolder; 3304ContingentProperties? cp = Volatile.Read(ref m_contingentProperties);
36 references to m_contingentProperties
System.Private.CoreLib (36)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (2)
381ContingentProperties? props = m_contingentProperties; 405if (m_contingentProperties?.m_parent != null)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (33)
132private Task? ParentForDebugger => m_contingentProperties?.m_parent; // Private property used by a debugger to access this Task's parent 519Debug.Assert(m_contingentProperties == null || m_contingentProperties.m_capturedContext == null, 579ContingentProperties? props = m_contingentProperties; 662Task? parent = m_contingentProperties?.m_parent; 856Task? parentTask = m_contingentProperties?.m_parent; 1113(m_contingentProperties != null) && 1114(m_contingentProperties.m_exceptionsHolder != null) && 1115(m_contingentProperties.m_exceptionsHolder.ContainsFaultList), 1118m_contingentProperties.m_exceptionsHolder.MarkAsHandled(false); 1335return m_contingentProperties; 1541return m_contingentProperties?.m_capturedContext ?? ExecutionContext.Default; 1708(m_contingentProperties != null) && 1709(m_contingentProperties.m_exceptionsHolder != null) && 1710(m_contingentProperties.m_exceptionsHolder.ContainsFaultList), 1714m_contingentProperties.m_exceptionsHolder.MarkAsHandled(false); 1844Debug.Assert(m_contingentProperties != null && m_contingentProperties.m_exceptionsHolder != null, "ExceptionRecorded should imply this"); 1848return m_contingentProperties.m_exceptionsHolder.CreateExceptionObject(false, canceledException); 1863return m_contingentProperties!.m_exceptionsHolder!.GetExceptionDispatchInfos(); 1943Task? parent = m_contingentProperties?.m_parent; 1978if (m_contingentProperties == null) 1990Debug.Assert(userDelegateExecute || m_contingentProperties != null); 1999ContingentProperties props = m_contingentProperties!; 2120ContingentProperties? cp = m_contingentProperties; 2138Task? parent = m_contingentProperties?.m_parent; 2155Debug.Assert(childTask.m_contingentProperties?.m_parent == this, "ProcessChildCompletion should only be called for a child of this task"); 2417m_contingentProperties!.m_cancellationToken == exceptionAsOce.CancellationToken) 3241Debug.Assert(m_contingentProperties is null || m_contingentProperties.m_cancellationToken == default); 3262Debug.Assert(m_contingentProperties!.m_cancellationToken == default); 3268m_contingentProperties.m_cancellationToken = tokenToRecord; 3341ContingentProperties? props = m_contingentProperties;
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