Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Bogatov <egorbo@gmail.com>2019-03-21 13:29:43 +0300
committerMarek Safar <marek.safar@gmail.com>2019-03-21 13:29:43 +0300
commit36a62bbf8a62b1325fbbcb2d97858dda89836609 (patch)
tree1e4bff865d1a3be90db1e4f972e19b20ab2d1535 /mcs/class/referencesource
parentf2065c849a4a0262fefe26a69aa0390d95a93953 (diff)
[netcore] Implement missing bits in ThreadPool (#13566)
* implement missing bits in ThreadPool * remove [SecurityCritical]
Diffstat (limited to 'mcs/class/referencesource')
-rw-r--r--mcs/class/referencesource/mscorlib/system/threading/threadpool.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/mcs/class/referencesource/mscorlib/system/threading/threadpool.cs b/mcs/class/referencesource/mscorlib/system/threading/threadpool.cs
index 783eb32e3c5..d67296a5cb6 100644
--- a/mcs/class/referencesource/mscorlib/system/threading/threadpool.cs
+++ b/mcs/class/referencesource/mscorlib/system/threading/threadpool.cs
@@ -1986,8 +1986,7 @@ namespace System.Threading
[System.Security.SecuritySafeCritical]
internal static void NotifyWorkItemProgress()
{
- if (!ThreadPoolGlobals.vmTpInitialized)
- ThreadPool.InitializeVMTp(ref ThreadPoolGlobals.enableWorkerTracking);
+ EnsureVMInitialized();
NotifyWorkItemProgressNative();
}