Merge pull request #505 from roji/shutdown_flow
[mono.git] / mono / mini / mini.c
index 6c9d1c0a3789934627cd009a90b2b84d27e373c2..28b66be959ff9fe33df01979916b3dd65ec2cc44 100644 (file)
@@ -7201,12 +7201,9 @@ mini_cleanup (MonoDomain *domain)
 #endif
 
 #ifndef MONO_CROSS_COMPILE     
-       mono_runtime_shutdown ();
        /* 
-        * mono_runtime_cleanup() and mono_domain_finalize () need to
-        * be called early since they need the execution engine still
-        * fully working (mono_domain_finalize may invoke managed finalizers
-        * and mono_runtime_cleanup will wait for other threads to finish).
+        * mono_domain_finalize () needs to be called early since it needs the
+        * execution engine still fully working (it may invoke managed finalizers).
         */
        mono_domain_finalize (domain, 2000);
 #endif