8253641: Missing newline in the printout of certain JFR events

Co-authored-by: Michael Bien <mbien42@gmail.com>
Reviewed-by: mgronlun
This commit is contained in:
Michael Bien 2020-10-20 17:47:34 +00:00 committed by Markus Grönlund
parent 89e5444554
commit e577c8c852

View File

@ -437,13 +437,16 @@ public final class PrettyWriter extends EventPrintWriter {
private void printClassLoader(RecordedClassLoader cl, String postFix) {
// Purposely not printing class loader name to avoid cluttered output
RecordedClass clazz = cl.getType();
print(clazz == null ? "null" : clazz.getName());
if (clazz != null) {
print(clazz.getName());
print(" (");
print("id = ");
print(String.valueOf(cl.getId()));
println(")");
print(")");
} else {
print("null");
}
println(postFix);
}
private void printJavaFrame(RecordedFrame f, String postFix) {