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

jcmd: VM.metaspace: print loader name for anonymous CLDs.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • hotspot
    • None
    • b16

        VM.metaspace show-loaders can be used to display loaders (well, really CLD instances).

        For anonymous CLDs, only "anonymous" is shown. It would be helpful to show to which loader these CLD are assigned.

        Example:

        Before: "272: ClassLoaderData 0x00007f5ba0538f10 for anonymous class"
        After: "268: CLD 0x00007ff0c45738f0 for <anonymous class>, loaded by app, instance of jdk.internal.loader.ClassLoaders$AppClassLoader"


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

                Created:
                Updated:
                Resolved: