Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions src/mono/mono/mini/mini-darwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,8 @@
#include <mach/exception.h>
#include <mach/task.h>
#include <pthread.h>
#include <dlfcn.h>
#include <AvailabilityMacros.h>

/* This is #define'd by Boehm GC to _GC_dlopen. */
#undef dlopen

void* dlopen(const char* path, int mode);

void
mono_runtime_install_handlers (void)
{
Expand Down Expand Up @@ -98,21 +92,6 @@ mono_runtime_install_handlers (void)
if (kr != KERN_SUCCESS)
g_warning ("mono_runtime_install_handlers: task_set_exception_ports failed");
#endif

/* Snow Leopard has a horrible bug: http://openradar.appspot.com/7209349
* This causes obscure SIGTRAP's for any application that comes across this built on
* Snow Leopard. This is a horrible hack to ensure that the private __CFInitialize
* is run on the main thread, so that we don't get SIGTRAPs later
*/
#if defined (__APPLE__) && (defined (__i386__) || defined (__x86_64__))
{
void *handle = dlopen ("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", RTLD_LAZY);
if (handle == NULL)
return;

dlclose (handle);
}
#endif
}

gboolean
Expand Down