Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FastHprofHeap throws on unknown instanceID in idToInstanceNumber #8

Open
JacekLach opened this issue Jun 15, 2021 · 1 comment
Open

Comments

@JacekLach
Copy link

I have a heap dump where I expect some classes were unloaded during runtime. Whatever the cause, there are class entries in the CLASS_DUMP segment that don't have a valid entry:

image

The 'non-fast' heap handles this by returning 0, but FastHprofHeap throws an exception and aborts analysis.
I believe both should return 0 here, as if the class instanceid doesn't have a valid entry it will not show up in the actual dump.

@aragozin
Copy link
Owner

Feel free to suggest a patch. I agree that FastHprofHeap and HprofHeap should have similar behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants