Fix building with GVM_RESOLUTION_TRACE (#89758)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Tue, 1 Aug 2023 06:07:21 +0000 (15:07 +0900)
committerGitHub <noreply@github.com>
Tue, 1 Aug 2023 06:07:21 +0000 (15:07 +0900)
This got broken when we got rid of reflection blocking.

src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/TypeLoaderEnvironment.GVMResolution.cs

index 2723aaf..7091043 100644 (file)
@@ -196,7 +196,7 @@ namespace Internal.Runtime.TypeLoader
                     targetTypeHandle = extRefs.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned());
                     isDefaultInterfaceMethodImplementation = RuntimeAugments.IsInterface(targetTypeHandle);
 #if GVM_RESOLUTION_TRACE
-                    Debug.WriteLine("    Searching for GVM implementation on targe type = " + RuntimeAugments.GetLastResortString(targetTypeHandle));
+                    Debug.WriteLine("    Searching for GVM implementation on targe type = " + targetTypeHandle.LowLevelToString());
 #endif
                 }
                 else
@@ -211,7 +211,7 @@ namespace Internal.Runtime.TypeLoader
                     RuntimeTypeHandle implementingTypeHandle = extRefs.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned());
 
 #if GVM_RESOLUTION_TRACE
-                    Debug.WriteLine("      -> Current implementing type = " + RuntimeAugments.GetLastResortString(implementingTypeHandle));
+                    Debug.WriteLine("      -> Current implementing type = " + implementingTypeHandle.LowLevelToString());
 #endif
 
                     uint numIfaceSigs = entryParser.GetUnsigned();