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 190903

Summary: [HeapWalker] incorrect computation of GC roots
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-10-11 12:27:51 UTC
Instance on any class implicitly holds its class. This information is not reflected in the heapwalker
and as a result GC root path for some instances are not computed correctly. As a result open attached heap dump and compute GC root path for instance com.sun.tools.javac.code.Scope#29.
Comment 1 Tomas Hurka 2010-10-11 13:22:17 UTC
Test heap dump is available here: <http://profiler.netbeans.org/download/files/class_instance_heapdump.hprof.bz2>
Comment 2 Tomas Hurka 2010-10-11 14:26:08 UTC
Fixed in profiler-main

changeset:   179217:1eb359d32558
user:        Tomas Hurka <thurka@netbeans.org>
date:        Mon Oct 11 16:13:59 2010 +0200
summary:     bugfix #190903, synthetic <class> field added to simulate that instance holds its class