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 186092

Summary: [HeapWalker] incorrect references for java.lang.ClassLoader instances
Product: profiler Reporter: Tomas Hurka <thurka>
Component: EngineAssignee: Tomas Hurka <thurka>
Status: RESOLVED FIXED    
Severity: normal Keywords: VISUALVM
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Tomas Hurka 2010-05-13 12:25:06 UTC
Instances of java.lang.ClassLoader are implicitly hold by classes loaded by particular classloader. This information is not visualized in the heapwalker and as a result GC root path for classloaders are not computed correctly.
Comment 1 Tomas Hurka 2010-05-13 12:30:13 UTC
This bug will be fixed by introducing synthetic static field named <classloader> which will point to  classloader, which loaded class. <classloader> static field can be null if the class is loaded by bootclassloader. <classloader> allows heapwalker to display classes as referrers of the classloader instance and  also fixes the GC root path computation.
Comment 2 Tomas Hurka 2010-05-13 13:48:26 UTC
Fixed in profiler-main.
changeset:   170590:36b195804f8a
user:        Tomas Hurka <thurka@netbeans.org>
date:        Thu May 13 15:47:05 2010 +0200
summary:     bugfix #186092, synthetic static field <classloader> added
Comment 3 Tomas Hurka 2010-05-13 16:54:31 UTC
Update: 
OQL does not like <classloader> name - it has to be changed to $classloader$

changeset:   170591:ff46daf36d6e
Comment 4 Quality Engineering 2010-05-17 15:31:11 UTC
Integrated into 'main-golden', will be available in build *201005170932* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log:
Comment 5 Quality Engineering 2010-05-19 06:17:56 UTC
Integrated into 'main-golden', will be available in build *201005182201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: