Fill in more MONO_PATCH_INFO_NONE support. (mono/mono#13990)
authorJay Krell <jaykrell@microsoft.com>
Fri, 16 Aug 2019 13:32:48 +0000 (06:32 -0700)
committerJo Shields <joshield@microsoft.com>
Fri, 16 Aug 2019 13:32:48 +0000 (09:32 -0400)
Commit migrated from https://github.com/mono/mono/commit/66afab580309acb23a5ed022a2e424c400907c65

src/mono/mono/mini/aot-runtime.c
src/mono/mono/mini/mini-arm64.c
src/mono/mono/mini/mini-generic-sharing.c
src/mono/mono/mini/mini-runtime.c
src/mono/mono/mini/mini-s390x.c

index 7185a89..c20ed02 100644 (file)
@@ -3996,8 +3996,8 @@ decode_patch (MonoAotModule *aot_module, MonoMemPool *mp, MonoJumpInfo *ji, guin
                ji->data.index = decode_value (p, &p);
                break;
        default:
-               g_warning ("unhandled type %d", ji->type);
-               g_assert_not_reached ();
+               g_error ("unhandled type %d", ji->type);
+               break;
        }
 
        *endbuf = p;
index c373dd9..03cedd0 100644 (file)
@@ -1005,6 +1005,8 @@ mono_arch_patch_code_new (MonoCompile *cfg, MonoDomain *domain, guint8 *code, Mo
        default:
                arm_patch_full (cfg, domain, ip, (guint8*)target, ji->relocation);
                break;
+       case MONO_PATCH_INFO_NONE:
+               break;
        }
 }
 
index ee4d051..f7b28a8 100644 (file)
@@ -4181,6 +4181,7 @@ mini_get_rgctx_entry_slot (MonoJumpInfoRgctxEntry *entry)
        }
        default:
                g_assert_not_reached ();
+       case MONO_PATCH_INFO_NONE:
                break;
        }
 
index a78a5c6..d23ef77 100644 (file)
@@ -1264,6 +1264,7 @@ mono_patch_info_hash (gconstpointer data)
                printf ("info type: %d\n", ji->type);
                mono_print_ji (ji); printf ("\n");
                g_assert_not_reached ();
+       case MONO_PATCH_INFO_NONE:
                return 0;
        }
 }
@@ -1331,6 +1332,7 @@ mono_patch_info_equal (gconstpointer ka, gconstpointer kb)
        case MONO_PATCH_INFO_GSHAREDVT_IN_WRAPPER:
                return mono_metadata_signature_equal (ji1->data.sig, ji2->data.sig);
        case MONO_PATCH_INFO_GC_SAFE_POINT_FLAG:
+       case MONO_PATCH_INFO_NONE:
                return 1;
        }
 
index 126f6d6..6a6caf3 100644 (file)
@@ -5357,6 +5357,8 @@ mono_arch_patch_code (MonoCompile *cfg, MonoMethod *method, MonoDomain *domain,
                                target = S390_RELATIVE(target, ip);
                                ip += 2;
                                s390_patch_rel (ip, (guint64) target);
+                       case MONO_PATCH_INFO_NONE:
+                               break;
                }
        }
 }