Fix a sgen shutdown crash.
commit164ba0d2042e10817b45b56e413a49419870841a
authorRodrigo Kumpera <kumpera@gmail.com>
Mon, 13 Sep 2010 11:09:01 +0000 (13 08:09 -0300)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 15 Sep 2010 20:39:44 +0000 (15 17:39 -0300)
tree032f9ab6e9952b58e30d0b7891042d13ee68a19d
parent8853b1acb3fa47c4d2bb4ee20da3c6f6a746db6f
Fix a sgen shutdown crash.

* threads.c (mono_thread_suspend_all_other_threads): wait_data
must not be malloc'd since it holds managed pointers. Alloc
it on stack since the struct is about 512/1024 bytes long.

* threads.c (mono_thread_manage): Ditto.

* threads.c (mono_threads_request_thread_dump): Ditto.
mono/metadata/threads.c