RFR: 8299275: Add some ClassLoaderData verification code [v2]
Coleen Phillimore
coleenp at openjdk.org
Fri Jan 6 13:58:51 UTC 2023
On Thu, 5 Jan 2023 17:09:56 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> Yes, I did add the deallocate_list verification too. I can change the title of the bug.
>
> This code seem unsafe since you are checking for `is_klass()` but cast to `InstanceKlass*`. Since `verify()` is in `Klass` anyway, it's better to say
>
>
> if (m->is_klass()) {
> ((Klass*)m)->verify();
fixed.
-------------
PR: https://git.openjdk.org/jdk/pull/11856
More information about the hotspot-dev
mailing list