Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8253641: Missing newline in the printout of certain JFR events
Co-authored-by: Michael Bien <mbien42@gmail.com>
Reviewed-by: mgronlun
  • Loading branch information
mbien authored and Markus Grönlund committed Oct 20, 2020
1 parent 89e5444 commit e577c8c
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -437,13 +437,16 @@ void printObject(RecordedObject object, long arraySize) {
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) {
Expand Down

1 comment on commit e577c8c

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on e577c8c Oct 20, 2020

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.