开发者

who hold reference to these objects

开发者 https://www.devze.com 2023-02-26 03:06 出处:网络
I see that dumpheap -stat command is show开发者_如何学编程ing 5 instance of my object. When I run dumpheap -MT , it lists all those 5 instances. In theory there should be only 2 instances. Is there an

I see that dumpheap -stat command is show开发者_如何学编程ing 5 instance of my object. When I run dumpheap -MT , it lists all those 5 instances. In theory there should be only 2 instances. Is there any windbg/sos command to trace who hold the reference to these instances.


You could use !gcroot on the object figure the root.

0

精彩评论

暂无评论...
验证码 换一张
取 消