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

SA: clhsdb 'jhisto' should display the module name also

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      generic
    • OS:
      generic

      Description

      clhsdb 'jhisto' should display the module name also (like the output of jmap -histo)

      Currently the clhsdb display is like this:
      hsdb> jhisto
      Iterating over heap. This may take a while...
      Object Histogram:

      num #instances #bytes Class description
      --------------------------------------------------------------------------
      1: 16430 1715112 byte[]
      2: 13292 425344 java.util.HashMap$Node
      3: 12154 291696 java.lang.String
      4: 2091 254496 java.util.HashMap$Node[]
      ...

      It needs to be on the lines of:

      $ ./build/linux-x86_64-normal-server-slowdebug/jdk/bin/jmap -histo 3029
       num #instances #bytes class name (module)
      -------------------------------------------------------
         1: 16430 1715112 [B (java.base@)
         2: 1662 640816 [I (java.base@)
         3: 13292 425344 java.util.HashMap$Node (java.base@)
         4: 12154 291696 java.lang.String (java.base@)
         5: 2091 254496 [Ljava.util.HashMap$Node; (java.base@)
      ...

      The missing module information needs to be added.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jgeorge Jini George (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: