[profiler] Remove the type field from TYPE_SAMPLE_HIT.
[mono.git] / mono / mini / mini-generic-sharing.c
index 5ef3b350bf065f713a12e9992a124a9d0c0b5b8f..9943d883966e1b74b6be10e1b515c3fbe945e0ba 100644 (file)
@@ -390,7 +390,17 @@ info_has_identity (MonoRgctxInfoType info_type)
 /*
  * LOCKING: loader lock
  */
+#if defined(PLATFORM_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)
 {