Inspect the managed stack

后端 未结 1 1258
迷失自我
迷失自我 2020-12-19 23:35

A .NET application can get a managed StackTrace that describes which methods were called and holds references to them to get their name, token and signature, an

相关标签:
1条回答
  • 2020-12-20 00:24

    The reason is described by Raymond Chen here.

    The short of it:

    A parameter to a method can become eligible for collection while the method is still executing.

    It's not intuitive, read the part about JIT and GC working together. So the limitation of the StackTrace info is by design.

    0 讨论(0)
提交回复
热议问题