Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public static partial class ThreadPool
internal static bool UseWindowsThreadPool { get; } =
AppContextConfigHelper.GetBooleanConfig("System.Threading.ThreadPool.UseWindowsThreadPool", "DOTNET_ThreadPool_UseWindowsThreadPool");

#pragma warning disable CA1823
// The field should reflect what the property returns because the property can be stubbed by trimming,
// such that sos reflects the actual state of what thread pool is being used and not just the config value.
private static readonly bool s_useWindowsThreadPool = UseWindowsThreadPool; // Name relied on by sos
#pragma warning restore CA1823

#if NATIVEAOT
private const bool IsWorkerTrackingEnabledInConfig = false;
#else
Expand Down