Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.


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

Reviewed-by: chagedorn, kvn
  • Loading branch information
TobiHartmann committed Jul 6, 2021
1 parent 5b8e1a2 commit 4ad8b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/opto/lcm.cpp
Expand Up @@ -413,7 +413,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 4ad8b04

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.