Replies: 2 comments 2 replies
-
It's |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think the simplest option is to wrap your lambda into a non-inlineable method ( |
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Improvements for DOTNET_JitDisasm, improvement for SOS.
I have a simple ASP.NET Core application:
The task I would like to solve: I would like to see the JIT generated assembly code for the anonymous lambda returning
Hello World
string literal.Ideally I would like to do it without modifying the source code. (If the anonymous method is named and NoInlining attribute is added, the steps below become trivial, but that is not the case for a production builds of an application.)
Using JIT_Disasm or DOTNET_JitDisasmSummary does not help:
When I take a memory dump using dotnet-dump for analysis, I can catch a stack trace for the request.
However, it is pointing at a
Dynamic.lambda_xzy
frame, and when I try to get the assembly code for it with SOS in windbg, the following message is shown instead:Can only work with dynamic not implemented
What would be the best tool / diagnostic steps to gather a better understanding of the underlying assembly code for the above case?
Beta Was this translation helpful? Give feedback.
All reactions