Skip to content

Use dedicated NoMoreSegmentsException to signal end of .hprof file#378

Open
JaroslavTulach wants to merge 1 commit intooracle:masterfrom
JaroslavTulach:jtulach/NoMoreSegmentsException
Open

Use dedicated NoMoreSegmentsException to signal end of .hprof file#378
JaroslavTulach wants to merge 1 commit intooracle:masterfrom
JaroslavTulach:jtulach/NoMoreSegmentsException

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