changeset 6457:3cc3ab869ccf

8157306, PR3209: Random infrequent null pointer exceptions in javac Reviewed-by: kvn
author aph
date Wed, 26 Oct 2016 05:40:47 +0100
parents e811c5c78eb4
children f68721524683
files src/share/vm/opto/lcm.cpp
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/lcm.cpp	Wed Oct 26 05:30:06 2016 +0100
+++ b/src/share/vm/opto/lcm.cpp	Wed Oct 26 05:40:47 2016 +0100
@@ -1068,11 +1068,14 @@
     Block *sb = _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 = _nodes[j-1]->clone();
       sb->_nodes.insert( 1, clone );
       bbs.map(clone->_idx,sb);
+#ifdef AARCH64
+      if (clone->needs_anti_dependence_check()) {
+        insert_anti_dependences(sb, clone);
+      }
+#endif
     }
   }