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

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

    Details

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

      Backports

        Description

        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"


          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: