[jit] Assert that the trampoline code is called in gc unsafe mode, throw exceptions...
[mono.git] / mono / mini / mini-generic-sharing.c
index 5ef3b350bf065f713a12e9992a124a9d0c0b5b8f..243c83cbe5d9cbbbe8e902d1d27ab72a043269e4 100644 (file)
@@ -390,7 +390,17 @@ info_has_identity (MonoRgctxInfoType info_type)
 /*
  * LOCKING: loader lock
  */
+#if defined(HOST_ANDROID) && defined(TARGET_ARM)
+/* work around for HW bug on Nexus9 when running on armv7 */
+#ifdef __clang__
+static __attribute__ ((optnone)) void
+#else
+/* gcc */
+static __attribute__ ((optimize("O0"))) void
+#endif
+#else
 static void
+#endif
 rgctx_template_set_slot (MonoImage *image, MonoRuntimeGenericContextTemplate *template_, int type_argc,
        int slot, gpointer data, MonoRgctxInfoType info_type)
 {