Skip to content

Conversation

JaroslavTulach
Copy link
Contributor

There is a org.graalvm.visualvm.lib.jfluid.heap.HeapFactory.createHeap(File hprof, int segment) method to create a Heap object for a particular segment in an .hprof file. However there doesn't seem to be reliable way to distinguish between corrupted file and non-existing segment.

This PR adds (package private) NoMoreSegmentsException that is thrown when the file itself is OK, but the requested segment is missing.

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

Successfully merging this pull request may close these issues.

2 participants