Skip to content

Retained size calculated as negative #263

Description

@sadaaithal

Describe the bug
A large object doesnt show up under "Dominators by retailed size" due to retained size calculation error.
IBM MAT tool doesn't have this problem

To Reproduce
I haven't found a way to generate a heapdump that causes visualvm to behave this way

Expected behavior
visualvm must be able to calculate the retainedsizes

VisualVM log
messages.log

Screenshots
This is how it looks in visualvm

image

And this is the same object in IBM MAT

image

And because of the negative retained size calulation, ( i think) the DefaultTable object doesn't show as a Dominator

image

Desktop (please complete the following information):

  • OS: Windows10
  • JDK version - jdk-9.0.4
  • Version - 2.0.5

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions