Fix name mangling issue where two subtly different MethodWithToken instances which...
authorDavid Wrighton <davidwr@microsoft.com>
Mon, 12 Jun 2023 19:14:02 +0000 (12:14 -0700)
committerGitHub <noreply@github.com>
Mon, 12 Jun 2023 19:14:02 +0000 (12:14 -0700)
src/coreclr/tools/aot/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs

index 1e6ed986c944b8b179761b9155dab239474f9dd7..3d46a44655edd4985af9cda036f0e30c0546eef4 100644 (file)
@@ -332,6 +332,12 @@ namespace Internal.JitInterface
             }
             sb.Append("; ");
             sb.Append(Token.ToString());
+            if (OwningTypeNotDerivedFromToken)
+            {
+                sb.Append("; OWNINGTYPE");
+                sb.Append(nameMangler.GetMangledTypeName(OwningType));
+                sb.Append("; ");
+            }
             if (Unboxing)
                 sb.Append("; UNBOXING");
         }