Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old snow leopard hack #55825

Merged
merged 3 commits into from
Jul 17, 2021
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