[threads] Fix "[threads] Fix leaking threads: SGen Worker and Finalizer (#5284)"...
authorLudovic Henry <ludovic@xamarin.com>
Fri, 8 Sep 2017 18:07:00 +0000 (14:07 -0400)
committerGitHub <noreply@github.com>
Fri, 8 Sep 2017 18:07:00 +0000 (14:07 -0400)
commitd96de323da8d7d9561ecbb5c2ebcdeb23ee1ee2e
tree0d5dbef4ef4cb7f6a85d55752871dcd8ae8fe858
parent65106878d5d0c45917cfc7646c2509f6eb71dd7f
[threads] Fix "[threads] Fix leaking threads: SGen Worker and Finalizer (#5284)" (#5532)

* Revert "[threads] Fix leaking threads: SGen Worker and Finalizer (#5284)"

The sgen-specific cleanup cannot be run before the sgen-agnostic cleanup

This reverts commit 7db0fb0c886f5157066e26c2e2ae2d39c338cf6b.

* [threads] Make sure we do not leak the finalizer and sgen threadpool threads
mono/metadata/gc.c
mono/metadata/threads.c