RFR: 8299275: Add some ClassLoaderData verification code

Coleen Phillimore coleenp at openjdk.org
Thu Jan 5 14:40:51 UTC 2023


On Thu, 5 Jan 2023 14:36:49 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> src/hotspot/share/classfile/classLoaderData.cpp line 1059:
>> 
>>> 1057:       Metadata* m = _deallocate_list->at(i);
>>> 1058:       if (m->is_klass()) {
>>> 1059:         ((InstanceKlass*)m)->verify();
>> 
>> There's no `InstanceKlass::verify()` method. Do you mean  `((Klass*)m)->verify()` ?
>
> // Verification
>   virtual void verify_on(outputStream* st);
>   void verify() { verify_on(tty); }
> 
> It calls the virtual function InstanceKlass::verify_on()

Yes, I did add the deallocate_list verification too.  I can change the title of the bug.

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

PR: https://git.openjdk.org/jdk/pull/11856


More information about the hotspot-dev mailing list