Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8159917

Space character is missing in ClassLoaderData::print_value_on

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • hotspot
    • None
    • svc
    • b133

      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);
         }
       }

            mockner Max Ockner (Inactive)
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: