JVMTI: FollowReferences : how to skip Soft/Weak/Phantom references?
- by Jayan
I am writing a small code to detect number of objects left behind after certain actions in our tool. This uses FollowReferences() JVMTI-API. This counts instances reachable by all paths. How can I skip paths that included weak/soft/phantom reference?
(IterateThroughHeap counts all objects at the moment, so the number is not fully reliable)
Thanks,
Jayan