Remove resetting of unmanaged thread locale from thread pool APIs (dotnet/coreclr...
authorJan Kotas <jkotas@microsoft.com>
Tue, 19 Feb 2019 00:37:19 +0000 (16:37 -0800)
committerGitHub <noreply@github.com>
Tue, 19 Feb 2019 00:37:19 +0000 (16:37 -0800)
commitd9fc7229bf3045f12b11e5d8ffed567966a06b7b
tree4e941a5570d98d3948ad109e8e49abe1faf0b3d9
parent65fea94036de7b999de96c66fcbeffea79357995
Remove resetting of unmanaged thread locale from thread pool APIs (dotnet/coreclr#22682)

The cost of doing this is showing up in the TechEmpower profiles. There is a lot of thread locale state in unmanaged libraries and OS APIs that the threadpool friendly code has to be aware off. It does not make sense to keep reseting just the Locale.

Commit migrated from https://github.com/dotnet/coreclr/commit/281f69036a435d11349fffdee6bb2f0c20f818eb
src/coreclr/src/vm/finalizerthread.cpp
src/coreclr/src/vm/util.cpp
src/coreclr/src/vm/util.hpp
src/coreclr/src/vm/win32threadpool.cpp