JVMTI: FollowReferences : how to skip Soft/Weak/Phantom references?

Posted by Jayan on Stack Overflow See other posts from Stack Overflow or by Jayan
Published on 2010-03-13T06:24:19Z Indexed on 2010/03/13 6:35 UTC
Read the original article Hit count: 283

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about java

Related posts about jvmti