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 - [HeapWalker] incorrect computation of GC roots
Summary: [HeapWalker] incorrect computation of GC roots
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: VISUALVM
Depends on:
Blocks:
 
Reported: 2010-10-11 12:27 UTC by Tomas Hurka
Modified: 2010-10-11 14:26 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 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