I am writing a small code to detect number of objects left behind after certain actions in our tool. This uses FollowReferences()
from 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.)