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 87755 - Leaking NbEditorDocument after find usages
Summary: Leaking NbEditorDocument after find usages
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2006-10-23 11:11 UTC by _ rkubacki
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

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 2006-10-23 11:11:19 UTC
dev build from Oct 20 (not retouche), JDk6b98

I opened Hudson project from java.net, opened hudson.Util class and did find
usages on nullify() method. One of the usages is
Maven.DescrpitorImpl.configure() and NbEditorDocument of its source file is now
strongly held in memory through this refrence chain:

Static reference from
org.netbeans.modules.java.settings.JavaSettings.javaSettings (from class
org.netbeans.modules.java.settings.JavaSettings) :
--> org.netbeans.modules.java.settings.JavaSettings@0xa45fe070 (46 bytes) (field
dataEntry:)
--> org.openide.util.SharedClassObject$DataEntry@0xa45f8090 (26 bytes) (field map:)
--> java.util.HashMap@0xa310d400 (40 bytes) (field table:)
--> [Ljava.util.HashMap$Entry;@0xa4616828 (72 bytes) (Element 0 of
[Ljava.util.HashMap$Entry;@0xa4616828:)
--> java.util.HashMap$Entry@0xa4613568 (24 bytes) (field value:)
--> java.beans.PropertyChangeSupport@0xa4615ab8 (24 bytes) (field listeners:)
--> sun.awt.EventListenerAggregate@0xa45ff300 (12 bytes) (field listenerList:)
--> [Ljava.beans.PropertyChangeListener;@0xa486f258 (36 bytes) (Element 4 of
[Ljava.beans.PropertyChangeListener;@0xa486f258:)
--> org.netbeans.modules.java.JavaEditor$JavaEditorChangeListener$2@0xa39c52b8
(12 bytes) (field this$1:)
--> org.netbeans.modules.java.JavaEditor$JavaEditorChangeListener@0xa3ba5d20 (20
bytes) (field this$0:)
--> org.netbeans.modules.java.JavaEditor@0xa3c94510 (160 bytes) (field doc:)
--> org.netbeans.modules.editor.NbEditorDocument@0xa211a9c8 (200 bytes)
Comment 1 Jan Lahoda 2007-03-19 10:49:23 UTC
Radim, does this still happen after the Retouche merge? Thanks.
Comment 2 Petr Nejedly 2007-03-19 14:57:00 UTC
Harder to verify (because of issue #97201)
Comment 3 Jan Lahoda 2007-03-22 09:06:52 UTC
Should be investigated for NB6.0 anyway.
Comment 4 Jan Becicka 2007-09-11 12:45:30 UTC
This issue is not valid in 6.0. org.netbeans.modules.java.JavaEditor does not exist any more.