#include <mono/metadata/verify-internals.h>
#include <mono/metadata/mempool-internals.h>
#include <mono/metadata/attach.h>
+#include <mono/metadata/gc-internal.h>
#include <mono/utils/mono-math.h>
#include <mono/utils/mono-compiler.h>
#include <mono/utils/mono-counters.h>
#include <pthread.h>
#include <dlfcn.h>
-#ifdef HAVE_SGEN_GC
-#undef pthread_create
-#undef pthread_join
-#undef pthread_detach
-#endif
-
/*
* This code disables the CrashReporter of MacOS X by installing
* a dummy Mach exception handler.
mach_exception_port,
EXCEPTION_DEFAULT,
MACHINE_THREAD_STATE) == KERN_SUCCESS);
+
+ mono_gc_register_mach_exception_thread (thread);
}
+/* This is #define'd by Boehm GC to _GC_dlopen. */
+#undef dlopen
+
void
mono_runtime_install_handlers (void)
{