who hold reference to these objects
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.
精彩评论