Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我看到 dumpheap -stat 命令显示我的对象的 5 个实例。当我运行 dumpheap -MT 时,它会列出所有这 5 个实例。理论上应该只有2个实例。是否有任何 windbg/sos 命令来跟踪谁持有对这些实例的引用。
您可以在对象上使用 !gcroot 来确定根。