hotspot/src/share/vm/opto/castnode.cpp
changeset 36072 2e822f451746
parent 36065 4f0e0cb7b016
child 42041 f316fd20ed98
--- a/hotspot/src/share/vm/opto/castnode.cpp	Mon Feb 15 13:26:44 2016 +0100
+++ b/hotspot/src/share/vm/opto/castnode.cpp	Mon Feb 15 15:15:56 2016 +0100
@@ -124,6 +124,7 @@
   for (DUIterator_Fast imax, i = val->fast_outs(imax); i < imax; i++) {
     Node* u = val->fast_out(i);
     if (u != this &&
+        u->outcnt() > 0 &&
         u->Opcode() == opc &&
         u->in(0) != NULL &&
         u->bottom_type()->higher_equal(type())) {