-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[NativeAOT] Add method parameter names to stack trace if available #73578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
...aot/System.Private.StackTraceMetadata/src/Internal/StackTraceMetadata/MethodNameFormatter.cs
Outdated
Show resolved
Hide resolved
MichalStrehovsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great otherwise, thanks!
src/libraries/System.Runtime.Extensions/tests/System/Environment.StackTrace.cs
Outdated
Show resolved
Hide resolved
...aot/System.Private.StackTraceMetadata/src/Internal/StackTraceMetadata/MethodNameFormatter.cs
Outdated
Show resolved
Hide resolved
...aot/System.Private.StackTraceMetadata/src/Internal/StackTraceMetadata/MethodNameFormatter.cs
Outdated
Show resolved
Hide resolved
MichalStrehovsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you!
I'll try to get this ported into .NET 7 (we snapped from the main branch on Tuesday.)
src/libraries/System.Runtime.Extensions/tests/System/Environment.StackTrace.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Runtime.Extensions/tests/System/Environment.StackTrace.cs
Outdated
Show resolved
Hide resolved
|
/backport to release/7.0-rc1 |
|
Started backporting to release/7.0-rc1: https://github.com/dotnet/runtime/actions/runs/2881987012 |
After taking a look at SchemaDef, I assume that parameter names are available iff we have a (Qualified)MethodHandle.
EmitMethodParametersthat takes aMethodHandleand prints the parameters with type and name. Restructured the calling code to make use of it.Fixes #73051