All references to an object

前端 未结 3 1491
遇见更好的自我
遇见更好的自我 2021-01-22 14:03


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.

Thanks

3条回答
  •  囚心锁ツ
    2021-01-22 14:30

    This is possivble via JVMTI and typically done by heap profilers. However, it cannot be done from within Java.

提交回复
热议问题