MonitorEnter test needs to handle the case of the threadpool cleaning up other thread...
authorDavid Wrighton <davidwr@microsoft.com>
Mon, 9 Aug 2021 19:42:06 +0000 (12:42 -0700)
committerGitHub <noreply@github.com>
Mon, 9 Aug 2021 19:42:06 +0000 (12:42 -0700)
commit9455436ec925596095cf70ef6a08545ae9c77b91
tree6a46654c9140987ed88bc285b8af199b67c46ded
parent6b2f05154aadb53d7cf312439f27314cc0aa49d2
MonitorEnter test needs to handle the case of the threadpool cleaning up other threads (#57008)

* MonitorEnter test needs to handle the case of the threadpool cleaning up other threads
- On rare gcstress test occasions there can a thread freed after allocating the 1024 threads but before the highThread is allocated

* Fix comment
src/tests/baseservices/threading/monitor/enter/monitorenter.cs