mat
mat copied to clipboard
Finalizer report does not show all objects available for finalization
| --- | --- | | Bugzilla Link | 482964 | | Status | NEW | | Importance | P3 enhancement | | Reported | Nov 25, 2015 01:03 EDT | | Modified | Apr 09, 2020 13:37 EDT | | Reporter | James Livingston |
Description
The Finalizer Overview shows objects being finalized and those queued for finalization, but it would be useful to also see objects that are not queued but would be if the JVM checked.
As a first approximation, all finalizable objects whose only incoming reference is from a Finalizer could be listed: in OQL "SELECT objects f.referent FROM java.lang.ref.Finalizer f where (inbounds(f.referent).size() = 1)"