Failure only triggers with JDK 11u on Sparc but JDK 17 is affected as well:
# Internal Error (open/src/hotspot/cpu/sparc/sparc.ad:2468), pid=17878, tid=12
# assert(vtable_index == Method::invalid_vtable_index) failed: correct sentinel value
Current CompileTask:
C2: 41955 357 4 jdk.internal.misc.Unsafe::allocateUninitializedArray (52 bytes)
Stack: [0xffffffff52e00000,0xffffffff52f00000], sp=0xffffffff52efa7c0, free space=1001k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x24bbf38] void VMError::report_and_die(int,const char*,const char*,void*,Thread*,unsigned char*,void*,void*,const char*,int,unsigned long)+0xa18
V [libjvm.so+0x24bb4ac] void VMError::report_and_die(Thread*,void*,const char*,int,const char*,const char*,void*)+0x3c
V [libjvm.so+0x154b360] void report_vm_error(const char*,int,const char*,const char*,...)+0x80
V [libjvm.so+0xec5c1c] void CallDynamicJavaDirectNode::emit(CodeBuffer&,PhaseRegAlloc*)const+0xbc
V [libjvm.so+0x142d0c0] unsigned Compile::scratch_emit_size(const Node*)+0x350
V [libjvm.so+0x2010ff4] void Compile::shorten_branches(unsigned*,int&,int&,int&)+0x4d4
V [libjvm.so+0x2013db4] CodeBuffer*Compile::init_buffer(unsigned*)+0x374
V [libjvm.so+0x2010478] void Compile::Output()+0x798
V [libjvm.so+0x143adfc] void Compile::Code_Gen()+0x74c
V [libjvm.so+0x142e5d4] Compile::Compile(ciEnv*,C2Compiler*,ciMethod*,int,bool,bool,bool,DirectiveSet*)+0x1344
V [libjvm.so+0x1220e64] void C2Compiler::compile_method(ciEnv*,ciMethod*,int,DirectiveSet*)+0x144
V [libjvm.so+0x1455250] void CompileBroker::invoke_compiler_on_method(CompileTask*)+0x5b0
V [libjvm.so+0x1454028] void CompileBroker::compiler_thread_loop()+0x3e8
V [libjvm.so+0x23b63f4] void JavaThread::thread_main_inner()+0x2e4
V [libjvm.so+0x23ae230] void Thread::call_run()+0x130
V [libjvm.so+0x1ff3c54] thread_native_entry+0x3f4