[runtime] Mark all the new Mono API we're using for coop as optional. (#100)
This fixes Xamarin.Mac apps using older system monos.
This commit is contained in:
Родитель
f3602b4e93
Коммит
c9bcf1f56d
|
@ -566,27 +566,27 @@
|
|||
|
||||
#region utils/mono-threads-api.h
|
||||
|
||||
new Export ("void*", "mono_threads_enter_gc_unsafe_region",
|
||||
new Export (true, "void*", "mono_threads_enter_gc_unsafe_region",
|
||||
"void **", "stackdata"
|
||||
),
|
||||
|
||||
new Export ("void", "mono_threads_exit_gc_unsafe_region",
|
||||
new Export (true, "void", "mono_threads_exit_gc_unsafe_region",
|
||||
"void *", "cookie",
|
||||
"void **", "stackdata"
|
||||
),
|
||||
|
||||
new Export ("void*", "mono_threads_enter_gc_safe_region",
|
||||
new Export (true, "void*", "mono_threads_enter_gc_safe_region",
|
||||
"void **", "stackdata"
|
||||
),
|
||||
|
||||
new Export ("void", "mono_threads_exit_gc_safe_region",
|
||||
new Export (true, "void", "mono_threads_exit_gc_safe_region",
|
||||
"void *", "cookie",
|
||||
"void **", "stackdata"
|
||||
),
|
||||
|
||||
new Export ("void", "mono_threads_assert_gc_safe_region" ),
|
||||
new Export (true, "void", "mono_threads_assert_gc_safe_region" ),
|
||||
|
||||
new Export ("void", "mono_threads_assert_gc_unsafe_region" ),
|
||||
new Export (true, "void", "mono_threads_assert_gc_unsafe_region" ),
|
||||
|
||||
new Export (true, "void", "mono_threads_assert_gc_starting_region" ),
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче