File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed 
src/libraries/System.Private.CoreLib/src/System/Threading Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ public static partial class ThreadPool
1313        internal  static bool  UseWindowsThreadPool  {  get ;  }  = 
1414            AppContextConfigHelper . GetBooleanConfig ( "System.Threading.ThreadPool.UseWindowsThreadPool" ,  "DOTNET_ThreadPool_UseWindowsThreadPool" ) ; 
1515
16+ #pragma warning disable CA1823 
17+         // The field should reflect what the property returns because the property can be stubbed by trimming, 
18+         // such that sos reflects the actual state of what thread pool is being used and not just the config value. 
19+         private  static readonly  bool  s_useWindowsThreadPool  =  UseWindowsThreadPool ;  // Name relied on by sos 
20+ #pragma warning restore CA1823 
21+ 
1622#if NATIVEAOT 
1723        private  const  bool  IsWorkerTrackingEnabledInConfig  =  false ; 
1824#else
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments