Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Strehovsky <michals@microsoft.com>2018-01-26 15:43:06 +0300
committerMichal Strehovsky <michals@microsoft.com>2018-01-26 15:43:06 +0300
commit3ff89c25070a9d48364274b8572576eb22e04c91 (patch)
treedd55143cb6ff0f88c86630416af06250c6079d66 /src/System.Private.StackTraceMetadata
parentd57a0096b6f2378eebbe4e0ca9ed0d22eeff5e48 (diff)
Two more fixes in stack trace metadata
* When emitting a TypeReference record for a generic type, include the names of the generic parameters by pretending the type is instantiated (necessary to get the T's and U's right in the parameter list) * Generic types do not show up instantiated in the parameter list on the CLR. Don't try to format it here either. [tfs-changeset: 1687157]
Diffstat (limited to 'src/System.Private.StackTraceMetadata')
-rw-r--r--src/System.Private.StackTraceMetadata/src/Internal/StackTraceMetadata/MethodNameFormatter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.StackTraceMetadata/src/Internal/StackTraceMetadata/MethodNameFormatter.cs b/src/System.Private.StackTraceMetadata/src/Internal/StackTraceMetadata/MethodNameFormatter.cs
index 2d3bb5a0a..feb7dccf7 100644
--- a/src/System.Private.StackTraceMetadata/src/Internal/StackTraceMetadata/MethodNameFormatter.cs
+++ b/src/System.Private.StackTraceMetadata/src/Internal/StackTraceMetadata/MethodNameFormatter.cs
@@ -345,9 +345,9 @@ namespace Internal.StackTraceMetadata
/// <param name="namespaceQualified">When set to true, include namespace information</param>
private void EmitTypeInstantiationName(TypeInstantiationSignatureHandle typeInstHandle, bool namespaceQualified)
{
+ // Stack trace metadata ignores the instantiation arguments of the type in the CLR
TypeInstantiationSignature typeInst = _metadataReader.GetTypeInstantiationSignature(typeInstHandle);
EmitTypeName(typeInst.GenericType, namespaceQualified);
- EmitGenericArguments(typeInst.GenericTypeArguments);
}
/// <summary>