addtional case

This commit is contained in:
Vladimir V. Ivanov 2026-01-27 14:14:09 -08:00
parent c9e80ed3ee
commit 70ceb4bd3d

View File

@ -507,8 +507,8 @@ bool LateInlineVirtualCallGenerator::do_late_inline_check(Compile* C, JVMState*
// Implicit receiver null checks introduce problems when exception states are combined. // Implicit receiver null checks introduce problems when exception states are combined.
Node* receiver = jvms->map()->argument(jvms, 0); Node* receiver = jvms->map()->argument(jvms, 0);
const Type* recv_type = C->initial_gvn()->type(receiver); const TypeOopPtr* recv_type = C->initial_gvn()->type(receiver)->isa_oopptr();
if (recv_type->maybe_null()) { if (recv_type == nullptr || recv_type->maybe_null()) {
C->inline_printer()->record(method(), call_node()->jvms(), InliningResult::FAILURE, C->inline_printer()->record(method(), call_node()->jvms(), InliningResult::FAILURE,
"late call devirtualization failed (receiver may be null)"); "late call devirtualization failed (receiver may be null)");
return false; return false;
@ -527,7 +527,7 @@ bool LateInlineVirtualCallGenerator::do_late_inline_check(Compile* C, JVMState*
jvms, jvms,
allow_inline, allow_inline,
_prof_factor, _prof_factor,
nullptr /*receiver_type*/, recv_type /*receiver_type*/,
nullptr /*speculative_receiver_type*/, nullptr /*speculative_receiver_type*/,
true /*allow_intrinsics*/); true /*allow_intrinsics*/);