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

David Holmes dholmes at openjdk.java.net
Wed Jan 19 07:03:29 UTC 2022


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

>> src/hotspot/share/oops/instanceKlass.cpp line 2103:
>> 
>>> 2101:   if (k->has_final_method()) buf[i++] = 'f';
>>> 2102:   if (k->has_vanilla_constructor()) buf[i++] = 'V';
>>> 2103:   if (k->is_instance_klass()) {
>> 
>> Don't the properties queried in L2100 to L2102 only apply to instance classes?
>
> These methods belong to `Klass`

That is true (though I wonder if it should be) but the question remains can these ever be present on a non-instance class?

Somewhat related can you show the output for an array class please.

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

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


More information about the serviceability-dev mailing list