# HG changeset patch # User aph # Date 1466704739 0 # Node ID 0c96934993832078c71646ef2f703d62ee74c546 # Parent a370975c1af23b97f6368c48621fdb05cb005bbd 8157306, PR3209: Random infrequent null pointer exceptions in javac Reviewed-by: kvn diff -r a370975c1af2 -r 0c9693499383 src/share/vm/opto/lcm.cpp --- a/src/share/vm/opto/lcm.cpp Sun Sep 01 19:21:05 2013 +0200 +++ b/src/share/vm/opto/lcm.cpp Thu Jun 23 17:58:59 2016 +0000 @@ -1075,11 +1075,12 @@ Block *sb = block->_succs[i]; // Clone the entire area; ignoring the edge fixup for now. for( uint j = end; j > beg; j-- ) { - // It is safe here to clone a node with anti_dependence - // since clones dominate on each path. Node *clone = block->get_node(j-1)->clone(); sb->insert_node(clone, 1); map_node_to_block(clone, sb); + if (clone->needs_anti_dependence_check()) { + insert_anti_dependences(sb, clone); + } } }