15 writes to m_contingentProperties
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (15)
305m_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); 1872return Volatile.Read(ref m_contingentProperties)?.m_exceptionsHolder?.GetCancellationExceptionDispatchInfo(); // may be null 1878Volatile.Read(ref m_contingentProperties)?.m_exceptionsHolder?.MarkAsHandled(calledFromFinalizer: false); 2048ContingentProperties? cp = Volatile.Read(ref m_contingentProperties); 2096cp = Volatile.Read(ref m_contingentProperties); // need to re-read after updating state 2158ContingentProperties? props = Volatile.Read(ref m_contingentProperties); 2219TaskExceptionHolder? exceptionHolder = Volatile.Read(ref task.m_contingentProperties)!.m_exceptionsHolder; 3284ContingentProperties? 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 521Debug.Assert(m_contingentProperties == null || m_contingentProperties.m_capturedContext == null, 581ContingentProperties? props = m_contingentProperties; 664Task? parent = m_contingentProperties?.m_parent; 857Task? 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; 1709(m_contingentProperties != null) && 1710(m_contingentProperties.m_exceptionsHolder != null) && 1711(m_contingentProperties.m_exceptionsHolder.ContainsFaultList), 1715m_contingentProperties.m_exceptionsHolder.MarkAsHandled(false); 1845Debug.Assert(m_contingentProperties != null && m_contingentProperties.m_exceptionsHolder != null, "ExceptionRecorded should imply this"); 1849return m_contingentProperties.m_exceptionsHolder.CreateExceptionObject(false, canceledException); 1864return m_contingentProperties!.m_exceptionsHolder!.GetExceptionDispatchInfos(); 1944Task? parent = m_contingentProperties?.m_parent; 1979if (m_contingentProperties == null) 1991Debug.Assert(userDelegateExecute || m_contingentProperties != null); 2000ContingentProperties props = m_contingentProperties!; 2121ContingentProperties? cp = m_contingentProperties; 2139Task? parent = m_contingentProperties?.m_parent; 2156Debug.Assert(childTask.m_contingentProperties?.m_parent == this, "ProcessChildCompletion should only be called for a child of this task"); 2418m_contingentProperties!.m_cancellationToken == exceptionAsOce.CancellationToken) 3221Debug.Assert(m_contingentProperties is null || m_contingentProperties.m_cancellationToken == default); 3242Debug.Assert(m_contingentProperties!.m_cancellationToken == default); 3248m_contingentProperties.m_cancellationToken = tokenToRecord; 3321ContingentProperties? 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