From 484b8c2baf11015fe11c0bdd983a9d22485e83e3 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Sun, 19 Feb 2012 21:00:33 -0500 Subject: [PATCH] Add link to http://docs.xamarin.com/ios/troubleshooting when running out of trampolines --- mono/mini/aot-runtime.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/mono/mini/aot-runtime.c b/mono/mini/aot-runtime.c index 4955e29aad5..2f67e93ec11 100644 --- a/mono/mini/aot-runtime.c +++ b/mono/mini/aot-runtime.c @@ -3901,9 +3901,16 @@ get_numerous_trampoline (MonoAotTrampoline tramp_type, int n_got_slots, MonoAotM *out_amodule = amodule; - if (amodule->trampoline_index [tramp_type] == amodule->info.num_trampolines [tramp_type]) - g_error ("Ran out of trampolines of type %d in '%s' (%d)\n", tramp_type, image->name, amodule->info.num_trampolines [tramp_type]); - + if (amodule->trampoline_index [tramp_type] == amodule->info.num_trampolines [tramp_type]) { + g_error ("Ran out of trampolines of type %d in '%s' (%d)%s\n", + tramp_type, image->name, amodule->info.num_trampolines [tramp_type], +#ifdef MONOTOUCH + ". See http://docs.xamarin.com/ios/troubleshooting for instruction on how to fix this condition" +#else + "" +#endif + ); + } index = amodule->trampoline_index [tramp_type] ++; mono_aot_unlock (); -- 2.25.1