JDK-8190864 : Clean up overlapping functionality for printing/dumping statistics, etc. in metaspace
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2017-11-07
  • Updated: 2017-11-07
  • Resolved: 2017-11-07
Related Reports
Duplicate :  
Relates :  
Description
There are many overlapping functionality for printing/dumping various statistics in metaspace, they should be consolidated.

Coleen mentioned in email:

There is so much overlapping functionality for printing sizes of metaspaces in this file.  It would be nice to have just one way of printing the metaspaces, and have the ::dump functions go away, and have the "print" functions consistently print sizes and statistics.  There is also CLD walking and metaspace printing in ClassLoaderDataGraph::dump which is used for debugging.  I'd be happy if that was only printing statistics about the CLD and not details of the metaspace that they point to.   This function was only for debugging though.

I think your version may be the most currently useful so I'm fine with it.  I hope we can have a cleanup of the rest of the printing though.

 (http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2017-November/025129.html)
Comments
I filed this bug premature, there is already a cleanup bug for metaspace. Make this a duplicate.
07-11-2017