RFR: 8275775: Add jcmd VM.classes to print details of all classes [v2]

David Holmes dholmes at openjdk.java.net
Wed Jan 19 07:08:28 UTC 2022


On Wed, 19 Jan 2022 02:29:22 GMT, Yi Yang <yyang at openjdk.org> wrote:

>> src/hotspot/share/oops/instanceKlass.cpp line 2100:
>> 
>>> 2098:   char buf[10];
>>> 2099:   int i = 0;
>>> 2100:   if (k->has_finalizer()) buf[i++] = 'F';
>> 
>> Where is the meaning of these flags documented?
>
> I don't find a proper place to document these flags, do you have any suggestions?
> 
> I do think we can output flag explanations as well, but it looks somewhat strange..
> 
> Flags: V=..., W=...
> KlassAddr           Size  State                 Flags    LoaderName    ClassName  
> 0x0000000800c0b400  62    fully_initialized     W        bootstrap     java.lang.invoke.LambdaForm$MH/0x0000000800c0b400  
> 0x0000000800c0b000  62    fully_initialized     W        bootstrap     java.lang.invoke.LambdaForm$DMH/0x0000000800c0b000  
> 0x0000000800c0ac00  62    fully_initialized     W        bootstrap     java.lang.invoke.LambdaForm$MH/0x0000000800c0ac00  
> 0x0000000800c0a800  62    fully_initialized     W        bootstrap     java.lang.invoke.LambdaForm$MH/0x0000000800c0a800  
> 0x0000000800c0a400  62    fully_initialized     W        bootstrap     java.lang.invoke.LambdaForm$MH/0x0000000800c0a400

Printing a legend line would be good, but there should also be actual documentation in the help output I think.

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

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


More information about the serviceability-dev mailing list