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 214626

Summary: [HeapWalker] Incorrect size of arrays in classes view
Product: profiler Reporter: Tomas Hurka <thurka>
Component: EngineAssignee: Tomas Hurka <thurka>
Status: RESOLVED FIXED    
Severity: normal Keywords: VISUALVM
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Tomas Hurka 2012-06-22 12:30:07 UTC
'Size of all instances' column in classes view does not match the sum of instances sizes as displayed in instances view. This is wrong only for arrays. 
Steps:
1) open heap dump
2) find array with a few instances (<5)
3) manually sum instance sizes in instance view - the sum does not match the size column in classes view
Comment 1 Tomas Hurka 2012-06-22 12:46:46 UTC
Fixed in profiler-main

changeset:   224900:aa6c08a5f9b4
user:        Tomas Hurka <thurka@netbeans.org>
date:        Fri Jun 22 14:31:57 2012 +0200
summary:     bugfix #214626, do not forget to add ArrayDump.HPROF_ARRAY_OVERHEAD
Comment 2 Quality Engineering 2012-06-24 04:43:07 UTC
Integrated into 'main-golden', will be available in build *201206240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/aa6c08a5f9b4
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #214626, do not forget to add ArrayDump.HPROF_ARRAY_OVERHEAD