* appdomain.c (mono_domain_unload): Change the InterlockedIncrement to
a plain store.
svn path=/trunk/mono/; revision=124068
+2009-01-21 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * appdomain.c (mono_domain_unload): Change the InterlockedIncrement to
+ a plain store.
+
2009-01-21 Zoltan Varga <vargaz@gmail.com>
* class.c (mono_class_setup_vtable_general): In the generic instance
thread_data.domain = domain;
thread_data.failure_reason = NULL;
- /*Move from unloading_start to unloading. Now no new TP jobs are going to be accepted.*/
- InterlockedIncrement ((gint32*)&domain->state);
+ /*The managed callback finished successfully, now we start tearing down the appdomain*/
+ domain->state = MONO_APPDOMAIN_UNLOADING;
/*
* First we create a separate thread for unloading, since
* we might have to abort some threads, including the current one.