对对象的所有引用 [英] All references to an object
本文介绍了对对象的所有引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以获取Java中对象的所有引用。
Is it possible to obtain all references to an object in Java.
我需要检查的是对象是否已全部删除订阅回调。
What I need to check is if an object has removed all subscriptions for callbacks.
谢谢
推荐答案
这可以通过< a href =http://en.wikipedia.org/wiki/JVMTI =nofollow> JVMTI ,通常由堆分析器完成。但是,它无法在Java中完成。
This is possivble via JVMTI and typically done by heap profilers. However, it cannot be done from within Java.
这篇关于对对象的所有引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文