From 10469069d5306d0b89eb768c556359fecd9f2695 Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Tue, 16 Feb 2016 05:24:48 +0000 Subject: [PATCH] Use same code path to initialize --- src/mscorlib/src/System/Threading/ThreadPool.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mscorlib/src/System/Threading/ThreadPool.cs b/src/mscorlib/src/System/Threading/ThreadPool.cs index 6674c8ec078e..8b187a805633 100644 --- a/src/mscorlib/src/System/Threading/ThreadPool.cs +++ b/src/mscorlib/src/System/Threading/ThreadPool.cs @@ -1879,8 +1879,7 @@ private static void EnsureVMInitialized() [System.Security.SecuritySafeCritical] internal static void NotifyWorkItemProgress() { - if (!ThreadPoolGlobals.vmTpInitialized) - ThreadPool.InitializeVMTp(ref ThreadPoolGlobals.enableWorkerTracking); + EnsureVMInitialized(); NotifyWorkItemProgressNative(); }