Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » Dominator tree and weak references
Dominator tree and weak references [message #668744] Sat, 07 May 2011 00:06 Go to next message
Patrick Dubroy is currently offline Patrick DubroyFriend
Messages: 1
Registered: July 2009
Junior Member
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 Go to previous message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 141
Registered: July 2009
Senior Member
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.
Previous Topic:Cannot find HashSet in Main Thread
Next Topic:Dumping TreeMap values
Goto Forum:
  


Current Time: Fri Sep 21 00:30:22 GMT 2018

Powered by FUDForum. Page generated in 0.02522 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top