RFR: 8369021: A crash in ConstantPool::klass_at_impl

Dean Long dlong at openjdk.org
Wed Oct 1 21:57:46 UTC 2025


On Wed, 1 Oct 2025 20:21:45 GMT, Jan Kratochvil <jkratochvil at openjdk.org> wrote:

> https://bugs.openjdk.org/browse/JDK-8369021

Doesn't this change mean that APIs like Class.isMemberClass() can now throw LinkageError?  Can't we compute the enclosing class without linking?

src/hotspot/share/prims/jvm.cpp line 1335:

> 1333: 
> 1334:   bool inner_is_member = false;
> 1335:   Klass* outer_klass = k->compute_enclosing_class(&inner_is_member, CHECK_NULL);

Why not put this change in compute_enclosing_class() instead?

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

PR Comment: https://git.openjdk.org/jdk/pull/27595#issuecomment-3358300734
PR Review Comment: https://git.openjdk.org/jdk/pull/27595#discussion_r2395997028


More information about the hotspot-dev mailing list