Disable the exception thread under iOS since it's neither needed nor working.
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 8 Jul 2011 23:44:21 +0000 (20:44 -0300)
committerRodrigo Kumpera <kumpera@gmail.com>
Sun, 10 Jul 2011 03:09:55 +0000 (00:09 -0300)
mono/mini/mini-darwin.c

index 8e6f93f3befaf60937dffb997fc48d68c413f643..1e5bcd40e0b9e9f46f4989b781069d9dbeee4a39 100644 (file)
 #include <dlfcn.h>
 #include <AvailabilityMacros.h>
 
+#if (MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_5) && !defined (TARGET_ARM)
+#define NEEDS_EXCEPTION_THREAD
+#endif
+
+#ifdef NEEDS_EXCEPTION_THREAD
+
 /*
  * This code disables the CrashReporter of MacOS X by installing
  * a dummy Mach exception handler.
@@ -185,13 +191,15 @@ macosx_register_exception_handler ()
        mono_gc_register_mach_exception_thread (thread);
 }
 
+#endif
+
 /* This is #define'd by Boehm GC to _GC_dlopen. */
 #undef dlopen
 
 void
 mono_runtime_install_handlers (void)
 {
-#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_5
+#ifdef NEEDS_EXCEPTION_THREAD
        macosx_register_exception_handler ();
 #endif
        mono_runtime_posix_install_handlers ();