mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-28 03:00:41 +00:00
8142500: missing null checks in IfNode::has_only_uncommon_traps
IfNode::has_only_uncommon_traps needs to null-check the callers. Reviewed-by: kvn, roland, rbackman
This commit is contained in:
parent
6de50f10f5
commit
c9b5f58d7f
@ -806,7 +806,11 @@ bool IfNode::has_only_uncommon_traps(ProjNode* proj, ProjNode*& success, ProjNod
|
||||
// that the call stacks are equal for both JVMStates.
|
||||
JVMState* dom_caller = dom_unc->jvms()->caller();
|
||||
JVMState* caller = unc->jvms()->caller();
|
||||
if (!dom_caller->same_calls_as(caller)) {
|
||||
if ((dom_caller == NULL) != (caller == NULL)) {
|
||||
// The current method must either be inlined into both dom_caller and
|
||||
// caller or must not be inlined at all (top method). Bail out otherwise.
|
||||
return false;
|
||||
} else if (dom_caller != NULL && !dom_caller->same_calls_as(caller)) {
|
||||
return false;
|
||||
}
|
||||
// Check that the bci of the dominating uncommon trap dominates the bci
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user