mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +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.
|
// 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*/);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user