[runtime][mobile_static] Add flag for rgctx_fetch_trampolines and use it (#3088)
authorAlexander Kyte <alexmkyte@gmail.com>
Tue, 7 Jun 2016 11:44:40 +0000 (07:44 -0400)
committerZoltan Varga <vargaz@gmail.com>
Tue, 7 Jun 2016 11:44:40 +0000 (07:44 -0400)
* [runtime] Add commandline option for rgctx fetch trampolines.

* [mobile_static] Increase the number of trampolines

mcs/build/rules.make
mono/mini/aot-compiler.c

index 5fda8826d12968f30542b58a29219ceff5d11208..5e90cf8ddac60c76169f749959fabe51e0fe4484 100644 (file)
@@ -144,11 +144,11 @@ endif
 
 # Set the options for building and running AOT
 # The trampoline numbers are provisional, they are what is required
-# to run the corlib test suite. They should be considered a lower bound.
-INVARIANT_AOT_OPTIONS=nimt-trampolines=900,ntrampolines=8000
+# to run the mcs/class test suites. They should be considered a lower bound.
+INVARIANT_AOT_OPTIONS=nimt-trampolines=900,ntrampolines=8000,nrgctx-fetch-trampolines=256
 
 ifndef MONO_DISABLE_GSHAREDVT
-INVARIANT_AOT_OPTIONS:=$(INVARIANT_AOT_OPTIONS),ngsharedvt-trampolines=900
+INVARIANT_AOT_OPTIONS:=$(INVARIANT_AOT_OPTIONS),ngsharedvt-trampolines=2800
 endif
 
 AOT_BUILD_FLAGS = $(AOT_BUILD_FLAGS_PREFIX)$(INVARIANT_AOT_OPTIONS)
index 5f5817b44a1cfc1ae84f7398e9c480537d68b4e6..95dc216d70e1be5c4068e4bbf0d600834c85e294 100644 (file)
@@ -7030,6 +7030,8 @@ mono_aot_parse_options (const char *aot_options, MonoAotOptions *opts)
                        opts->ntrampolines = atoi (arg + strlen ("ntrampolines="));
                } else if (str_begins_with (arg, "nrgctx-trampolines=")) {
                        opts->nrgctx_trampolines = atoi (arg + strlen ("nrgctx-trampolines="));
+               } else if (str_begins_with (arg, "nrgctx-fetch-trampolines=")) {
+                       opts->nrgctx_fetch_trampolines = atoi (arg + strlen ("nrgctx-fetch-trampolines="));
                } else if (str_begins_with (arg, "nimt-trampolines=")) {
                        opts->nimt_trampolines = atoi (arg + strlen ("nimt-trampolines="));
                } else if (str_begins_with (arg, "ngsharedvt-trampolines=")) {