[threadpool] ThreadPool.SetMinThreads fails if ThreadPool.GetMaxThreads was not calle...
commitff0430bf3b675585ee6296d91d937ac57f667d60
authorEgor Bogatov <egorbo@gmail.com>
Wed, 11 Apr 2018 13:38:50 +0000 (11 16:38 +0300)
committerLudovic Henry <luhenry@microsoft.com>
Wed, 11 Apr 2018 13:38:50 +0000 (11 09:38 -0400)
treede32e808780b14c1b2aed5f15f8ecf777e25b484
parentaf43001e89a185b164a95fd19a5bf73e41834062
[threadpool] ThreadPool.SetMinThreads fails if ThreadPool.GetMaxThreads was not called before (#8160)

* fix ThreadPool.SetMinThreads fails if ThreadPool.GetMaxThreads was not called before #7988

* check mono_lazy_initialize in ves_icall_System_Threading_ThreadPool_SetMaxThreadsNative first
mcs/class/corlib/Test/System.Threading/ThreadPoolTest.cs
mono/metadata/threadpool.c