5 writes to _maxThreads
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.cs (5)
143_maxThreads = HasForcedMaxThreads ? ForcedMaxWorkerThreads : DefaultMaxWorkerThreadCount; 146_maxThreads = MaxPossibleThreadCount; 150_maxThreads = _minThreads; 296_maxThreads = newMaxThreads; 320workerThreads = Volatile.Read(ref _maxThreads);
13 references to _maxThreads
System.Private.CoreLib (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.Blocking.cs (3)
28: (short)Math.Min((ushort)(_minThreads + _numBlockedThreads), (ushort)_maxThreads); 157(short)Math.Min((ushort)(_minThreads + BlockingConfig.ThreadsToAddWithoutDelay), (ushort)_maxThreads); 164Math.Max(configuredMaxThreadsWithoutDelay, Math.Min(counts.NumExistingThreads, _maxThreads));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.cs (8)
144if (_maxThreads > MaxPossibleThreadCount) 148else if (_maxThreads < _minThreads) 160(ushort)_maxThreads, 190if (workerThreads > _maxThreads) 236(ushort)_maxThreads, 291if (newMaxThreads == _maxThreads) 306(ushort)_maxThreads, 327workerThreads = Math.Max(0, _maxThreads - counts.NumProcessingWork);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.GateThread.cs (1)
153counts.NumProcessingWork < threadPoolInstance._maxThreads &&
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.HillClimbing.cs (1)
329int maxThreads = threadPoolInstance._maxThreads;