[runtime] mono_set_pending_exception expects to be in GC Unsafe mode.

This commit is contained in:
Rolf Bjarne Kvinge 2016-05-16 18:08:57 +02:00
Родитель af0d01c93a
Коммит d7bdc5d126
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1935,9 +1935,11 @@ xamarin_process_nsexception (NSException *ns_exception)
mono_set_pending_exception ((MonoException *) exc);
} else {
int handle = xamarin_create_ns_exception (ns_exception);
MONO_BEGIN_GC_UNSAFE;
MonoObject *exc = mono_gchandle_get_target (handle);
mono_set_pending_exception ((MonoException *) exc);
mono_gchandle_free (handle);
MONO_END_GC_UNSAFE;
}
break;
case MarshalObjectiveCExceptionModeAbort: