diff options
author | Austin Wise <AustinWise@gmail.com> | 2017-03-02 01:28:56 -0800 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2017-03-02 10:28:56 +0100 |
commit | 542ca8e3fe40dcea5c7c69bc20915ca41b8b3f97 (patch) | |
tree | 9e65ccda045c6c47144451c095509dfeb8248b2b /src/vm/threadpoolrequest.cpp | |
parent | 262f09cbb657febc7454ca8a9675d3213d5ee8a0 (diff) | |
download | coreclr-542ca8e3fe40dcea5c7c69bc20915ca41b8b3f97.tar.gz coreclr-542ca8e3fe40dcea5c7c69bc20915ca41b8b3f97.tar.bz2 coreclr-542ca8e3fe40dcea5c7c69bc20915ca41b8b3f97.zip |
Remove CLRThreadpoolHosted as it always returns false. (#9899)
Diffstat (limited to 'src/vm/threadpoolrequest.cpp')
-rw-r--r-- | src/vm/threadpoolrequest.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/vm/threadpoolrequest.cpp b/src/vm/threadpoolrequest.cpp index 7dee1273bf..247deea304 100644 --- a/src/vm/threadpoolrequest.cpp +++ b/src/vm/threadpoolrequest.cpp @@ -368,11 +368,8 @@ void UnManagedPerAppDomainTPCount::SetAppDomainRequestsActive() LONG prevCount = FastInterlockCompareExchange(&m_outstandingThreadRequestCount, count+1, count); if (prevCount == count) { - if (!CLRThreadpoolHosted()) - { - ThreadpoolMgr::MaybeAddWorkingWorker(); - ThreadpoolMgr::EnsureGateThreadRunning(); - } + ThreadpoolMgr::MaybeAddWorkingWorker(); + ThreadpoolMgr::EnsureGateThreadRunning(); break; } count = prevCount; @@ -608,11 +605,8 @@ void ManagedPerAppDomainTPCount::SetAppDomainRequestsActive() LONG prev = FastInterlockCompareExchange(&m_numRequestsPending, count+1, count); if (prev == count) { - if (!CLRThreadpoolHosted()) - { - ThreadpoolMgr::MaybeAddWorkingWorker(); - ThreadpoolMgr::EnsureGateThreadRunning(); - } + ThreadpoolMgr::MaybeAddWorkingWorker(); + ThreadpoolMgr::EnsureGateThreadRunning(); break; } count = prev; @@ -688,7 +682,7 @@ void ManagedPerAppDomainTPCount::ClearAppDomainUnloading() // AD. // VolatileStore(&m_numRequestsPending, (LONG)ThreadpoolMgr::NumberOfProcessors); - if (!CLRThreadpoolHosted() && ThreadpoolMgr::IsInitialized()) + if (ThreadpoolMgr::IsInitialized()) { ThreadpoolMgr::MaybeAddWorkingWorker(); ThreadpoolMgr::EnsureGateThreadRunning(); |