Finding Responsible Objects

Immediate Dominators

This query finds and aggregates all objects dominating a given set of objects on class level.

Choice of options:



screen shot of the context menu


screen shot of the list of immediate dominators
The immediate dominators of all char arrays are all objects responsible for keeping the char[] alive. The result will contain most likely java.lang.String objects. If you add the skip pattern java.* , and you will see the non-JDK classes responsible for the char arrays.
Related concepts
Dominator Tree