This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 191042

Summary: Memory leak in ShareMenu + VCSContext
Product: versioncontrol Reporter: Jesse Glick <jglick>
Component: MercurialAssignee: Tomas Stupka <tstupka>
Status: RESOLVED FIXED    
Severity: normal Keywords: PERFORMANCE
Priority: P2    
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2010-10-15 19:38:22 UTC
I observed my IDE retaining projects long after they had been closed, and analyzed a heap dump. One of the problems:

<a project> <- ... <- ProjectsRootNode.BadgingNode <- VCSContext <- ShareMenu <- <main menu bar>

I cannot quite follow how ShareMenu is supposed to work, but this seems to be a singleton menu, so it must never hold a strong reference to anything which might be related to a project.
Comment 1 Tomas Stupka 2010-10-15 22:30:41 UTC
the same for export/recover/show/mergemenu
Comment 2 Tomas Stupka 2010-10-15 22:41:56 UTC
fixed #bdc40bdb16e9
Comment 3 Jesse Glick 2010-10-18 17:52:10 UTC
Not sure what repo that is in. Is this now RESOLVED/FIXED?
Comment 4 Tomas Stupka 2010-10-19 09:02:21 UTC
http://hg.netbeans.org/rev/bdc40bdb16e9
Comment 5 Tomas Stupka 2010-10-19 09:03:03 UTC
http://hg.netbeans.org/cdev/rev/bdc40bdb16e9