mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
addtional case
This commit is contained in:
parent
c9e80ed3ee
commit
70ceb4bd3d
@ -507,8 +507,8 @@ bool LateInlineVirtualCallGenerator::do_late_inline_check(Compile* C, JVMState*
|
||||
|
||||
// Implicit receiver null checks introduce problems when exception states are combined.
|
||||
Node* receiver = jvms->map()->argument(jvms, 0);
|
||||
const Type* recv_type = C->initial_gvn()->type(receiver);
|
||||
if (recv_type->maybe_null()) {
|
||||
const TypeOopPtr* recv_type = C->initial_gvn()->type(receiver)->isa_oopptr();
|
||||
if (recv_type == nullptr || recv_type->maybe_null()) {
|
||||
C->inline_printer()->record(method(), call_node()->jvms(), InliningResult::FAILURE,
|
||||
"late call devirtualization failed (receiver may be null)");
|
||||
return false;
|
||||
@ -527,7 +527,7 @@ bool LateInlineVirtualCallGenerator::do_late_inline_check(Compile* C, JVMState*
|
||||
jvms,
|
||||
allow_inline,
|
||||
_prof_factor,
|
||||
nullptr /*receiver_type*/,
|
||||
recv_type /*receiver_type*/,
|
||||
nullptr /*speculative_receiver_type*/,
|
||||
true /*allow_intrinsics*/);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user