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 99804 - PackageViewChildren.NoFoldersDataFilter memory leak
Summary: PackageViewChildren.NoFoldersDataFilter memory leak
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 49026
  Show dependency tree
 
Reported: 2007-04-03 13:21 UTC by _ rkubacki
Modified: 2007-04-03 16:15 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 _ rkubacki 2007-04-03 13:21:36 UTC
NetBeans IDE Dev (Build 070402)
1.6.0_01-ea; Java HotSpot(TM) Client VM 1.6.0_01-ea-b03
Linux version 2.6.18-1.2239_1.fc5.cubbi_suspend2 running on i386
en_US (nb); UTF-8

Create new j2se library project and close it. It is still held in memory through
following chain of references:

private static final org.netbeans.api.queries.VisibilityQuery
org.netbeans.api.queries.VisibilityQuery.INSTANCE->
org.netbeans.api.queries.VisibilityQuery@1e1dd6c-changeSupport->
org.openide.util.ChangeSupport@125a0a6-listeners->
java.util.concurrent.CopyOnWriteArrayList@e68317-array->
[Ljava.lang.Object;@121f10f-[17]->
org.netbeans.spi.java.project.support.ui.PackageViewChildren$NoFoldersDataFilter@38f8d1-this$0->
org.netbeans.spi.java.project.support.ui.PackageViewChildren@176502d-group->
org.netbeans.spi.project.support.ant.SourcesHelper$SourceRoot$Group@1be2cf3-this$1->
org.netbeans.spi.project.support.ant.SourcesHelper$TypedSourceRoot@1464089-this$0->
org.netbeans.spi.project.support.ant.SourcesHelper@1ea9c3d-project->
org.netbeans.spi.project.support.ant.AntProjectHelper@77ed6a-state->
org.netbeans.api.project.ProjectManager$ProjectStateImpl@a8f448-p->
org.netbeans.modules.java.j2seproject.J2SEProject@3a0277
Comment 1 Jesse Glick 2007-04-03 16:02:55 UTC
Looks like it just needs a weak listener.
Comment 2 Jesse Glick 2007-04-03 16:15:01 UTC
Checking in
test/unit/src/org/netbeans/spi/java/project/support/ui/PackageViewTest.java;
/shared/data/ccvs/repository/java/project/test/unit/src/org/netbeans/spi/java/project/support/ui/PackageViewTest.java,v
 <--  PackageViewTest.java
new revision: 1.31; previous revision: 1.30
done
Checking in nbproject/project.xml;
/shared/data/ccvs/repository/java/project/nbproject/project.xml,v  <--  project.xml
new revision: 1.37; previous revision: 1.36
done
Checking in src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java;
/shared/data/ccvs/repository/java/project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java,v
 <--  PackageViewChildren.java
new revision: 1.78; previous revision: 1.77
done