Expose ThreadPool_UnfairSemaphoreSpinLimit config
authorLukasz Tomczyk <lutom@microsoft.com>
Mon, 18 Jul 2016 16:28:12 +0000 (09:28 -0700)
committerLukasz Tomczyk <lutom@microsoft.com>
Tue, 2 Aug 2016 23:14:43 +0000 (16:14 -0700)
commit0504bf7c2d8003e81b0c5ad6392831f36781470a
tree082e640539928a2ab3575aa0591faa61a5e5df3e
parent9a9096bc059c66dbed583cfe986cb2eb61cdfa17
Expose ThreadPool_UnfairSemaphoreSpinLimit config

Spin-wait in ThreadpoolMgr::UnfairSemaphore::Wait can cause significant
CPU usage, which is unnecessary in some scenarios, where threadpool
receives work in bursts. Use of the above parameter will allow fine tuning
of the threadpool behavior based on the workload expectation.

Fix #5928
src/inc/clrconfigvalues.h
src/vm/win32threadpool.cpp
src/vm/win32threadpool.h