Make sure to unlock InternalThread::synch_cs when we fail to suspend the thread durin...
commitc3fd562d4e24bafea352216380f82f38eb8cf1f1
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 7 Mar 2013 00:30:50 +0000 (6 19:30 -0500)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 7 Mar 2013 21:09:34 +0000 (7 16:09 -0500)
treec978f40dd61082626efd8074fe887b799eb761bb
parent7b4a395f24c75bb43f021106d15ad2d08439d047
Make sure to unlock InternalThread::synch_cs when we fail to suspend the thread during shutdown.

This should fix both crashes seen during Environment.Exit by xbuild and possibly deadlocks.
mono/metadata/threads.c