Skip to content

Commit c44da65

Browse files
committed
8268369: SIGSEGV in PhaseCFG::implicit_null_check due to missing null check
Backport-of: 4ad8b04
1 parent 2beb7e7 commit c44da65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/opto/lcm.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ void PhaseCFG::implicit_null_check(Block* block, Node *proj, Node *val, int allo
414414
// Move the control dependence if it is pinned to not-null block.
415415
// Don't change it in other cases: NULL or dominating control.
416416
Node* ctrl = best->in(0);
417-
if (get_block_for_node(ctrl) == not_null_block) {
417+
if (ctrl != NULL && get_block_for_node(ctrl) == not_null_block) {
418418
// Set it to control edge of null check.
419419
best->set_req(0, proj->in(0)->in(0));
420420
}

0 commit comments

Comments
 (0)