changeset 10233:fbfe20c87c17

8149797: Compilation fails with "assert(in_hash) failed: node should be in igvn hash table" Summary: node replaced by dominating dead cast during parsing Reviewed-by: kvn
author roland
date Mon, 15 Feb 2016 15:15:56 +0100
parents a4dbb762e571
children 6ac1feb0794c
files src/share/vm/opto/castnode.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/castnode.cpp	Mon Feb 15 13:26:44 2016 +0100
+++ b/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())) {