[threadpool] Fix hang on threadpool cleanup (#4330)
authorLudovic Henry <ludovic@xamarin.com>
Tue, 7 Feb 2017 20:09:47 +0000 (15:09 -0500)
committerGitHub <noreply@github.com>
Tue, 7 Feb 2017 20:09:47 +0000 (15:09 -0500)
commitede498bb6fc08d45c8eaeafb2be08ea3c8e1066a
tree4a6c7679e13ecf28ffb0552f423f86ea3b0746b6
parent38ceab15479475d54159de8d2c0d297c56e5f80b
[threadpool] Fix hang on threadpool cleanup (#4330)

Waiting for the threadpool threads to exit on shutdown triggers a hand. The simplest solution is to not wait for them, and let the OS clean them up.

This is not an ideal solution, but this is to fix a months-long chase for this bug, and to release a less-buggy monthly release.
mono/metadata/threadpool-worker-default.c
mono/metadata/threadpool.c