JDK-8159917 : Space character is missing in ClassLoaderData::print_value_on
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-06-20
  • Updated: 2016-08-25
  • Resolved: 2016-08-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b133Fixed
Related Reports
Relates :  
Description
Symptom:

$ jcmd $PID GC.class_stats ClassName,ClassLoader| grep MyClass
  267    49 MyClass,class loader 0x00007fa7c04182f0a 'jdk/internal/loader/ClassLoaders$AppClassLoader'{0x00000003d249aa00}

The space character is missing between "0x00007fa7c04182f0" and "a"

Fix:

diff -r 13b2c7ac95a5 src/share/vm/classfile/classLoaderData.cpp
--- a/src/share/vm/classfile/classLoaderData.cpp	Wed Jun 15 09:48:24 2016 -0400
+++ b/src/share/vm/classfile/classLoaderData.cpp	Mon Jun 20 10:05:11 2016 -0700
@@ -1147,7 +1147,7 @@
   if (class_loader() == NULL) {
     out->print("NULL class_loader");
   } else {
-    out->print("class loader " INTPTR_FORMAT, p2i(this));
+    out->print("class loader " INTPTR_FORMAT " ", p2i(this));
     class_loader()->print_value_on(out);
   }
 }


Comments
This bug also affects the output of java -Xlog:class+load=debug .....
20-06-2016