关闭 .net JIT 编译器优化

发布于 2024-07-09 04:55:07 字数 253 浏览 6 评论 0原文

当我们远程一个方法(使用泛型)时,远程接收器似乎无法从其他相同命名的方法中发现我们的方法。 使用附加的 .net 源代码进行调试,我已将其定位到有 MethodInfo.MakeGenericMethod 调用的位置。 然而,我无法查看任何周围的数据,因为它已经过即时优化。

几周前,我遇到了一个注册表设置,它可以禁用此设置(它特别提到它有助于使用源代码进行调试)。 然而,作为一个沃利,我失去了我用它所做的一切,并且很难再次找到它。

When we remote a method (that is using generics) the remoting sink cannot seem to discover our method from the other identical named ones. Debugging with .net source code attached I've got it to where there is a MethodInfo.MakeGenericMethod call. However I cannot look at any of the surrounding data as its been jit optimised.

I couple of weeks ago I came across a registry setting that would disable this setting (it specifically mentioned that it aid debugging with the source). However being a wally I've lost what I did with it and am having trouble finding it again.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秋意浓 2024-07-16 04:55:07

我不知道注册表解决方案,但您可以使用 INI 文件来禁用 JIT 优化。

简短版本是创建一个包含以下内容的 .ini 文件(即 myapp.ini)。

[.NET Framework Debugging Control]
GenerateTrackingInfo=1
AllowOptimize=0

完整说明

I don't know about a registry solution, but you can use an INI file to disable JIT optimazation.

The short version is create an .ini file (i.e. myapp.ini) with the following contents.

[.NET Framework Debugging Control]
GenerateTrackingInfo=1
AllowOptimize=0

Full Explanation Here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文