Dominator tree and weak references [message #668744] |
Sat, 07 May 2011 00:06  |
Eclipse User |
|
|
|
Hi,
I've been using MAT a lot lately -- it's a great tool.
I have a question about the dominator tree: when calculating the tree, are weak references treated specially? I did a little experimentation, and it seems that weak refs are treated as strong refs for the purposes of the dominator tree.
Assuming I'm right about this, I'm curious if there's a reason this choice was made.
|
|
|
Re: Dominator tree and weak references [message #670934 is a reply to message #668744] |
Mon, 16 May 2011 09:28  |
Eclipse User |
|
|
|
The dominator tree is calculated as part of the initial parsing and opening of the dump. At that stage no distinction is made between weak and strong references.
Ignoring weak references would require a new calculation of the dominator tree.
Some of the other queries can ignore weak references - e.g. paths to GC roots,
merge shortest paths to GC roots.
|
|
|
Powered by
FUDForum. Page generated in 0.02921 seconds