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 - Memory leak in ShareMenu + VCSContext
Summary: Memory leak in ShareMenu + VCSContext
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2010-10-15 19:38 UTC by Jesse Glick
Modified: 2010-10-19 09:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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