Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.
/ jdk17 Public archive

Commit 4ad8b04

Browse files
committed
8268369: SIGSEGV in PhaseCFG::implicit_null_check due to missing null check
Reviewed-by: chagedorn, kvn
1 parent 5b8e1a2 commit 4ad8b04

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
@@ -413,7 +413,7 @@ void PhaseCFG::implicit_null_check(Block* block, Node *proj, Node *val, int allo
413413
// Move the control dependence if it is pinned to not-null block.
414414
// Don't change it in other cases: NULL or dominating control.
415415
Node* ctrl = best->in(0);
416-
if (get_block_for_node(ctrl) == not_null_block) {
416+
if (ctrl != NULL && get_block_for_node(ctrl) == not_null_block) {
417417
// Set it to control edge of null check.
418418
best->set_req(0, proj->in(0)->in(0));
419419
}

0 commit comments

Comments
 (0)