RFR: 8275775: VM.metaspace prints flag 'f' for classes that have non-trivial finalize() [v3]

Thomas Stuefe stuefe at openjdk.java.net
Wed Oct 27 08:15:14 UTC 2021


On Wed, 27 Oct 2021 08:05:55 GMT, Yi Yang <yyang at openjdk.org> wrote:

> Hi Thomas and David,
> 
> Thanks a lot for your reviews.
> 
> I was convinced by above comments. VM.metaspace may not be a good place, because as explained that it prints info related to the memory usage of metadata. On the other hand, we do encounter some real scenarios to inspect InstanceKlass. jhsdb is not capable in product environment. I think `jcmd VM.classes` is a more suitable place to output this information as we already have VM.classloaders/VM.symboltable/VM.systemdictionary, it is also flexible for subsequent extension (e.g. print more flags and more detailed class information) and easy to use. In my preliminary idea, `jcmd VM.classes` outputs summary class information, just like what PrintCompilation did, `jcmd VM.classes details` outputs detailed class information. Any idea is appreciated.
> 
> Thanks!

I like this (also the succinct name). Unfortunately, this would need a CSR, but if you have not yet done that we can help with this.

Cheers, Thomas

-------------

PR: https://git.openjdk.java.net/jdk/pull/6075


More information about the hotspot-runtime-dev mailing list