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

Yi Yang yyang at openjdk.java.net
Wed Jan 19 02:32:32 UTC 2022


On Tue, 18 Jan 2022 03:10:11 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Yi Yang has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:
>> 
>>   8275775 Add VM.classes to print details of all classes
>
> 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

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

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


More information about the serviceability-dev mailing list