RFR: 8299275: Add some ClassLoaderData verification code

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


On Thu, 5 Jan 2023 00:16:44 GMT, Ioi Lam <iklam at openjdk.org> wrote:

>> I added some verification code to try to help track down JDK-8296915 (https://bugs.openjdk.org/browse/JDK-8296915).
>> Ran Test: runtime/SelectionResolution/InvokeInterfaceSuccessTest.java 100x with -XX:+VerifyBefore/AfterGC.
>> Tested with tier1-4.
>
> 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()

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

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


More information about the hotspot-dev mailing list