mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8262329: Fix JFR parser exception messages
Reviewed-by: egahlin
This commit is contained in:
parent
a4c249610e
commit
65a245e262
@ -94,7 +94,6 @@ public final class ChunkParser {
|
||||
public final static RecordedEvent FLUSH_MARKER = JdkJfrConsumer.instance().newRecordedEvent(null, null, 0L, 0L);
|
||||
|
||||
private static final long CONSTANT_POOL_TYPE_ID = 1;
|
||||
private static final String CHUNKHEADER = "jdk.types.ChunkHeader";
|
||||
private final RecordingInput input;
|
||||
private final ChunkHeader chunkHeader;
|
||||
private final TimeConverter timeConverter;
|
||||
@ -334,10 +333,7 @@ public final class ChunkParser {
|
||||
if (lookup == null) {
|
||||
if (type == null) {
|
||||
throw new IOException(
|
||||
"Error parsing constant pool type " + getName(id) + " at position " + input.position() + " at check point between [" + lastCP + ", " + lastCP + size + "]");
|
||||
}
|
||||
if (type.getName() != CHUNKHEADER) {
|
||||
Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Found constant pool(" + id + ") that is never used");
|
||||
"Error parsing constant pool type " + getName(id) + " at position " + input.position() + " at check point between [" + lastCP + ", " + (lastCP + size) + "]");
|
||||
}
|
||||
ConstantMap pool = new ConstantMap(ObjectFactory.create(type, timeConverter), type.getName());
|
||||
lookup = new ConstantLookup(pool, type);
|
||||
@ -369,7 +365,7 @@ public final class ChunkParser {
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new IOException("Error parsing constant pool type " + getName(id) + " at position " + input.position() + " at check point between [" + lastCP + ", " + lastCP + size + "]",
|
||||
throw new IOException("Error parsing constant pool type " + getName(id) + " at position " + input.position() + " at check point between [" + lastCP + ", " + (lastCP + size) + "]",
|
||||
e);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user