From 0cd6070d58049f07dfcc2ad986569c7e8a236a97 Mon Sep 17 00:00:00 2001 From: Roland Westrelin Date: Mon, 15 Feb 2016 15:15:56 +0100 Subject: [PATCH] 8149797: Compilation fails with "assert(in_hash) failed: node should be in igvn hash table" Node replaced by dominating dead cast during parsing Reviewed-by: kvn --- hotspot/src/share/vm/opto/castnode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hotspot/src/share/vm/opto/castnode.cpp b/hotspot/src/share/vm/opto/castnode.cpp index b3a9c04b40d..5dc76a95736 100644 --- a/hotspot/src/share/vm/opto/castnode.cpp +++ b/hotspot/src/share/vm/opto/castnode.cpp @@ -124,6 +124,7 @@ TypeNode* ConstraintCastNode::dominating_cast(PhaseTransform *phase) const { 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())) {