Skip to content


Browse files Browse the repository at this point in the history
8268369: SIGSEGV in PhaseCFG::implicit_null_check due to missing null…
… check

Backport-of: 4ad8b04
  • Loading branch information
TheRealMDoerr committed Jul 8, 2021
1 parent 2beb7e7 commit c44da65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/opto/lcm.cpp
Expand Up @@ -414,7 +414,7 @@ void PhaseCFG::implicit_null_check(Block* block, Node *proj, Node *val, int allo
// Move the control dependence if it is pinned to not-null block.
// Don't change it in other cases: NULL or dominating control.
Node* ctrl = best->in(0);
if (get_block_for_node(ctrl) == not_null_block) {
if (ctrl != NULL && get_block_for_node(ctrl) == not_null_block) {
// Set it to control edge of null check.
best->set_req(0, proj->in(0)->in(0));
Expand Down

1 comment on commit c44da65

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.