[sgen] Factor out the finalize hash tables into a reusable hash table implementation.
[mono.git] / mono / metadata / runtime.c
index 1a20d496d3ee5c79b7b7f6708bf48e4d7227760f..276a519f0d3d7d8b5b9bcd52dd0057367ebdf1f4 100644 (file)
@@ -15,6 +15,7 @@
 #include <mono/metadata/class.h>
 #include <mono/metadata/class-internals.h>
 #include <mono/metadata/runtime.h>
+#include <mono/metadata/monitor.h>
 
 static void
 fire_process_exit_event (MonoDomain *domain, gpointer user_data)
@@ -39,8 +40,13 @@ void
 mono_runtime_shutdown (void)
 {
        mono_domain_foreach (fire_process_exit_event, NULL);
-
-       /*From this point on, no more DM methods can be created. */
-       mono_reflection_shutdown ();
 }
 
+
+gboolean
+mono_runtime_is_critical_method (MonoMethod *method)
+{
+       if (mono_monitor_is_il_fastpath_wrapper (method))
+               return TRUE;
+       return FALSE;
+}