diff --git a/src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.Shared.xml b/src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.Shared.xml index a6c2ad4619d923..42d6b943d539f8 100644 --- a/src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.Shared.xml +++ b/src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.Shared.xml @@ -32,14 +32,9 @@ - - - - - diff --git a/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs index 0f64ba8ea52f94..2e2c40fe3b90d7 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs @@ -130,8 +130,6 @@ public class Task : IAsyncResult, IDisposable internal volatile int m_stateFlags; // SOS DumpAsync command depends on this name private Task? ParentForDebugger => m_contingentProperties?.m_parent; // Private property used by a debugger to access this Task's parent - private int StateFlagsForDebugger => m_stateFlags; // Private property used by a debugger to access this Task's state flags - private TaskStateFlags StateFlags => (TaskStateFlags)(m_stateFlags & ~(int)TaskStateFlags.OptionsMask); // Private property used to help with debugging [Flags] internal enum TaskStateFlags diff --git a/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TaskScheduler.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TaskScheduler.cs index 7895f5592789db..de993d12983c2c 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TaskScheduler.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TaskScheduler.cs @@ -218,12 +218,6 @@ internal virtual void NotifyWorkItemProgress() { } - /// - /// Indicates whether this is a custom scheduler, in which case the safe code paths will be taken upon task entry - /// using a CAS to transition from queued state to executing. - /// - internal virtual bool RequiresAtomicStartTransition => true; - /// /// Calls QueueTask() after performing any needed firing of events /// diff --git a/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/ThreadPoolTaskScheduler.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/ThreadPoolTaskScheduler.cs index 45339d9bdd892b..6de92eea0af7de 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/ThreadPoolTaskScheduler.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/ThreadPoolTaskScheduler.cs @@ -114,11 +114,5 @@ internal override void NotifyWorkItemProgress() { ThreadPool.NotifyWorkItemProgress(); } - - /// - /// This is the only scheduler that returns false for this property, indicating that the task entry codepath is unsafe (CAS free) - /// since we know that the underlying scheduler already takes care of atomic transitions from queued to non-queued. - /// - internal override bool RequiresAtomicStartTransition => false; } } diff --git a/src/libraries/System.Private.CoreLib/src/System/Threading/Timer.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/Timer.cs index b9b825711fa975..46636426768513 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Threading/Timer.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Threading/Timer.cs @@ -973,23 +973,5 @@ public ValueTask DisposeAsync() } private string DisplayString => _timer._timer.DisplayString; - - /// Gets a list of all timers for debugging purposes. - private static IEnumerable AllTimers // intended to be used by devs from debugger - { - get - { - var timers = new List(); - - foreach (TimerQueue queue in TimerQueue.Instances) - { - timers.AddRange(queue.GetTimersForDebugger()); - } - - timers.Sort((t1, t2) => t1._dueTime.CompareTo(t2._dueTime)); - - return timers; - } - } } }