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 47847 - OpenProjectList.RecentProjectList.recentProjects holds hard ref to closed projects
Summary: OpenProjectList.RecentProjectList.recentProjects holds hard ref to closed pro...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-08-25 00:27 UTC by Jesse Glick
Modified: 2004-08-25 20:03 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Profiler output (553.95 KB, image/jpeg)
2004-08-25 15:46 UTC, Petr Hrebejk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-08-25 00:27:55 UTC
Must not do this. Can keep a List<URL>, for
example, and recreate the closed projects on
demand using ProjectManager.findProject, but in
general they should be freely collectible.
Comment 1 Jesse Glick 2004-08-25 00:29:11 UTC
...and should not load the projects eagerly on startup, either.
Comment 2 Petr Hrebejk 2004-08-25 15:39:36 UTC
Checking in
projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java,v
 <--  OpenProjectList.java
new revision: 1.19; previous revision: 1.18
done

Fixed the RecentProjectList. But the look into optimizeit still shows
the closed projects are not GCed. Will attach screenshot of the
profiler output.  
Comment 3 Petr Hrebejk 2004-08-25 15:46:12 UTC
Created attachment 17139 [details]
Profiler output
Comment 4 Petr Hrebejk 2004-08-25 15:48:40 UTC
Changing summary
Comment 5 Jesse Glick 2004-08-25 18:40:46 UTC
Reported problem should be fixed, you are seeing something else.
Comment 6 Jesse Glick 2004-08-25 18:41:13 UTC
Reported problem fixed.
Comment 7 Jesse Glick 2004-08-25 18:59:23 UTC
Restoring original summary, should not have been changed.
Comment 8 Pavel Buzek 2004-08-25 20:03:33 UTC
Ok, I filed the new issue as #47957.