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

jcmd VM.classloaders should fold similar loaders

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      svc
    • Resolved In Build:
      b20

      Backports

        Description

        VM.classloaders prints a tree of class loaders. This tree can grow a lot and become unwieldy, especially with a lot of similar loaders. One prime example is the DelegatingClassLoader. It would be helpful were all these loaders:

        13114:
        +-- <bootstrap>
              |
              +-- "platform", jdk.internal.loader.ClassLoaders$PlatformClassLoader
                    |
                    +-- "app", jdk.internal.loader.ClassLoaders$AppClassLoader
                          |
                          +-- test3.internals.InMemoryClassLoader
                                |
                                +-- jdk.internal.reflect.DelegatingClassLoader
                                |
                                +-- jdk.internal.reflect.DelegatingClassLoader
                                |
                                +-- jdk.internal.reflect.DelegatingClassLoader
                                |
                                +-- jdk.internal.reflect.DelegatingClassLoader
                                |
                                +-- jdk.internal.reflect.DelegatingClassLoader
                                |
                                ...... repeat 1495 times

         folded into one:

        13114:
        +-- <bootstrap>
              |
              +-- "platform", jdk.internal.loader.ClassLoaders$PlatformClassLoader
                    |
                    +-- "app", jdk.internal.loader.ClassLoaders$AppClassLoader
                          |
                          +-- test3.internals.InMemoryClassLoader
                                |
                                +-- jdk.internal.reflect.DelegatingClassLoader (+ 1499 more)


          Attachments

            Issue Links

              Activity

                People

                Assignee:
                stuefe Thomas Stuefe
                Reporter:
                stuefe Thomas Stuefe
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: