On Thu, 2 Mar 2023 20:42:16 GMT, Alex Menkov <[email protected]> wrote:
>> test/hotspot/jtreg/serviceability/sa/UniqueVtableTest.java line 112:
>>
>>> 110: }
>>> 111:
>>> 112: if (vtable == null && t.getSuperclass() != null) {
>>
>> Why only log if there is no superclass?
>
> vmStruct contains a lot of entries which should have vtable == null
> I added logging of some stats to the test, on win-x64-fastdebug it reports:
> total: 861, no vtable: 503, no_vtable_with_super: 24
> if test would log everything with no vtable, test log is truncated
In that case is it worth listing the "no vtable" classes that have a
superclass? Are they somehow more interesting than those without a superclass?
-------------
PR: https://git.openjdk.org/jdk/pull/12820