Adjusting `GetCurrentProcessorId` caching to different environments. (#467)
authorVladimir Sadov <vsadov@microsoft.com>
Sun, 15 Dec 2019 19:43:39 +0000 (11:43 -0800)
committerGitHub <noreply@github.com>
Sun, 15 Dec 2019 19:43:39 +0000 (11:43 -0800)
commitaedf8f52006619ef5d4eca65d79f42cc4b7bc402
tree5913d91fe854860745775de7ed22bd829b93fc01
parent57df20206691c6123b6e2d392b661cb3541fc24a
Adjusting `GetCurrentProcessorId` caching to different environments. (#467)

* Adjusting `GetCurrentProcessorId` caching rate based on relative performance of `GetCurrentProcessorNumber` and `TheadStatic`
src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/coreclr/src/System.Private.CoreLib/src/System/Threading/ProcessorIdCache.cs [new file with mode: 0644]
src/coreclr/src/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs