Fixes to allow using OS-provided threadpool (#43726)
authorJan Kotas <jkotas@microsoft.com>
Fri, 23 Oct 2020 06:42:27 +0000 (23:42 -0700)
committerGitHub <noreply@github.com>
Fri, 23 Oct 2020 06:42:27 +0000 (23:42 -0700)
commit0e052b6abf99dce346c98af5c7e66d1acf3a6dfa
treeb2ee8e060789fd5bfa1bf4ef6630ba113d97de69
parentffe824ce40306db780f0fb1c3f1feb04c2dc0543
Fixes to allow using OS-provided threadpool (#43726)

Backport from dotnet/runtimelab:NativeAOT
12 files changed:
src/coreclr/src/System.Private.CoreLib/src/System/Threading/ThreadPool.CoreCLR.cs
src/coreclr/src/tools/Common/System/Collections/Generic/ArrayBuilder.cs
src/coreclr/src/tools/Common/TypeSystem/Common/MetadataFieldLayoutAlgorithm.cs
src/coreclr/src/tools/Common/TypeSystem/Common/TypeSystemHelpers.cs
src/libraries/System.Private.CoreLib/src/System/Threading/LowLevelLock.cs
src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.WaitThread.cs
src/libraries/System.Private.CoreLib/src/System/Threading/RegisteredWaitHandle.Portable.cs
src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPool.Portable.cs
src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPool.cs
src/mono/netcore/System.Private.CoreLib/src/System/Threading/ThreadPool.Browser.Mono.cs
src/tests/Interop/PInvoke/CustomMarshalers/CustomMarshalersTest.cs
src/tests/Interop/PInvoke/CustomMarshalers/CustomMarshalersTest.csproj