How to find classes FinalReference references to?

Tao Mao yiyeguhu at gmail.com
Fri May 8 22:33:44 UTC 2015


Hi,

I find one of our applications using G1GC takes a comparably long time to
do [Ref Proc]. Tried ParallelRefProcEnabled, with no noticeable
improvement. Turning on PrintReferenceGC further finds all of processed
references are FinalReference. We want to know which code is using a
finalizer at this point. Our own code base does not use finalize() at all.
So, I suspect finalize() is being used by some external Java libraries but
they are not easy to find.

Is there any way to find and profile classes/objects FinalReference
references to?

(I guess I'm still able to hack into OpenJDK code but I'd rather not do
that :)

Thanks.
Tao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20150508/1ed8ba4b/attachment.html>


More information about the hotspot-gc-use mailing list