Merge pull request #261 from joncham/bug-null-interface-bitset
[mono.git] / mono / metadata / runtime.c
index e4a4c32b3a374c054be6769d6662089e96c81587..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)
@@ -41,3 +42,11 @@ mono_runtime_shutdown (void)
        mono_domain_foreach (fire_process_exit_event, NULL);
 }
 
+
+gboolean
+mono_runtime_is_critical_method (MonoMethod *method)
+{
+       if (mono_monitor_is_il_fastpath_wrapper (method))
+               return TRUE;
+       return FALSE;
+}