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 1317ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 1331return Volatile.Read(ref m_contingentProperties) ?? InitializeContingentProperties(); 1335Interlocked.CompareExchange(ref m_contingentProperties, new ContingentProperties(), null); 1346m_contingentProperties ??= new ContingentProperties(); 1356ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 1509ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 1614ContingentProperties? cp = Volatile.Read(ref m_contingentProperties); 1873return Volatile.Read(ref m_contingentProperties)?.m_exceptionsHolder?.GetCancellationExceptionDispatchInfo(); // may be null 1879Volatile.Read(ref m_contingentProperties)?.m_exceptionsHolder?.MarkAsHandled(calledFromFinalizer: false); 2049ContingentProperties? cp = Volatile.Read(ref m_contingentProperties); 2097cp = Volatile.Read(ref m_contingentProperties); // need to re-read after updating state 2159ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 2220TaskExceptionHolder? exceptionHolder = Volatile.Read(ref task.m_contingentProperties)!.m_exceptionsHolder; 3306ContingentProperties? 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)
379ContingentProperties? props = m_contingentProperties; 403if (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; 1114(m_contingentProperties != null) && 1115(m_contingentProperties.m_exceptionsHolder != null) && 1116(m_contingentProperties.m_exceptionsHolder.ContainsFaultList), 1119m_contingentProperties.m_exceptionsHolder.MarkAsHandled(false); 1336return m_contingentProperties; 1542return m_contingentProperties?.m_capturedContext ?? ExecutionContext.Default; 1710(m_contingentProperties != null) && 1711(m_contingentProperties.m_exceptionsHolder != null) && 1712(m_contingentProperties.m_exceptionsHolder.ContainsFaultList), 1716m_contingentProperties.m_exceptionsHolder.MarkAsHandled(false); 1846Debug.Assert(m_contingentProperties != null && m_contingentProperties.m_exceptionsHolder != null, "ExceptionRecorded should imply this"); 1850return m_contingentProperties.m_exceptionsHolder.CreateExceptionObject(false, canceledException); 1865return m_contingentProperties!.m_exceptionsHolder!.GetExceptionDispatchInfos(); 1945Task? parent = m_contingentProperties?.m_parent; 1980if (m_contingentProperties == null) 1992Debug.Assert(userDelegateExecute || m_contingentProperties != null); 2001ContingentProperties props = m_contingentProperties!; 2122ContingentProperties? cp = m_contingentProperties; 2140Task? parent = m_contingentProperties?.m_parent; 2157Debug.Assert(childTask.m_contingentProperties?.m_parent == this, "ProcessChildCompletion should only be called for a child of this task"); 2419m_contingentProperties!.m_cancellationToken == exceptionAsOce.CancellationToken) 3243Debug.Assert(m_contingentProperties is null || m_contingentProperties.m_cancellationToken == default); 3264Debug.Assert(m_contingentProperties!.m_cancellationToken == default); 3270m_contingentProperties.m_cancellationToken = tokenToRecord; 3343ContingentProperties? 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