[domain] Report domain unloads to the profiler when finalizing the domain.
[mono.git] / mono / metadata / domain.c
index 0d0c20b7c6288e4102e2629d558ca1b81228863f..fa2514b9814b088d8748494a51fda80edc8c2df3 100644 (file)
@@ -1169,12 +1169,6 @@ mono_domain_free (MonoDomain *domain, gboolean force)
        g_slist_free (domain->domain_assemblies);
        domain->domain_assemblies = NULL;
 
-       /* 
-        * Send this after the assemblies have been unloaded and the domain is still in a 
-        * usable state.
-        */
-       mono_profiler_appdomain_event (domain, MONO_PROFILE_END_UNLOAD);
-
        if (free_domain_hook)
                free_domain_hook (domain);