Call ensure_synch_cs_set () in thread_cleanup () too, it is needed when disposing...
authorZoltan Varga <vargaz@gmail.com>
Mon, 19 Sep 2011 23:38:55 +0000 (01:38 +0200)
committerZoltan Varga <vargaz@gmail.com>
Tue, 20 Sep 2011 01:55:37 +0000 (03:55 +0200)
mono/metadata/threads.c

index cd2d82afa093e154e215ef7ddef44467d8cbe9e8..422dff84d531a2ea06ab741bdcfda7e2b8196a24 100644 (file)
@@ -368,6 +368,8 @@ static void thread_cleanup (MonoInternalThread *thread)
        }
        mono_release_type_locks (thread);
 
+       ensure_synch_cs_set (thread);
+
        EnterCriticalSection (thread->synch_cs);
 
        thread->state |= ThreadState_Stopped;