Skip to content

Commit

Permalink
8289688: jfr command hangs when it processes invalid file
Browse files Browse the repository at this point in the history
Backport-of: dd9bd31b86b732bc84a4db9a4d9c2b15e8142c90
  • Loading branch information
TheRealMDoerr committed Jun 20, 2023
1 parent 9780137 commit d85a847
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -158,6 +158,8 @@ public void refresh() throws IOException {
Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Chunk: finalChunk=" + finalChunk);
absoluteChunkEnd = absoluteChunkStart + chunkSize;
return;
} else if (finished) {
throw new IOException("No metadata event found in finished chunk.");
}
}
}
Expand Down

1 comment on commit d85a847

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.