8289688: jfr command hangs when it processes invalid file
Reviewed-by: egahlin
This commit is contained in:
parent
8179a191f0
commit
dd9bd31b86
@ -162,6 +162,8 @@ public final class ChunkHeader {
|
||||
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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user