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 157289 - [HeapWalker] total bytes integer overflow
Summary: [HeapWalker] total bytes integer overflow
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-22 08:14 UTC by Tomas Hurka
Modified: 2009-02-19 22:56 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 2009-01-22 08:14:39 UTC
On large heap dumps (>2G) total live bytes, total live instances and all instances size can exceed max int. In such case heapwalker will display incorrect data 
in class overview.
Comment 1 Tomas Hurka 2009-01-22 13:04:07 UTC
FIxed in profiler-main
changeset:   114360:09f53ffe87b9
user:        Tomas Hurka <thurka@netbeans.org>
date:        Thu Jan 22 09:29:25 2009 +0100
summary:     bugfix #157289, Summary.getTotalLiveBytes() Summary.getTotalLiveInstances() and JavaClass.getAllInstancesSize() now return long instead of int

Comment 2 Quality Engineering 2009-01-24 18:51:51 UTC
Integrated into 'main-golden', will be available in build *200901241401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/09f53ffe87b9
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #157289, Summary.getTotalLiveBytes() Summary.getTotalLiveInstances() and JavaClass.getAllInstancesSize() now return long instead of int