[runtime] Improve thread dumping reliability by doing it while holding the fat locks.
commita8392ba567cb8038111beff25ee1c61aeae3232d
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 12 Sep 2014 18:15:55 +0000 (12 14:15 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 12 Sep 2014 18:18:39 +0000 (12 14:18 -0400)
tree2a775336352834a8c4d64fd0a97db93574e1df4f
parent3f740f3d94c00f0edd4f0bb317bd3133ac279da0
[runtime] Improve thread dumping reliability by doing it while holding the fat locks.

We take the loader and the root domain locks before doing a thread dump. This reduces the odds
of us suspending a thread that holds either of them and deadlocking, for example, while decoding
AOT JIs.
mono/metadata/threads.c