We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01e135c commit 7cbab1fCopy full SHA for 7cbab1f
src/hotspot/share/opto/compile.cpp
@@ -4889,7 +4889,16 @@ void Compile::remove_speculative_types(PhaseIterGVN &igvn) {
4889
const Type* t_no_spec = t->remove_speculative();
4890
if (t_no_spec != t) {
4891
bool in_hash = igvn.hash_delete(n);
4892
- assert(in_hash, "node should be in igvn hash table");
+#ifdef ASSERT
4893
+ if (!in_hash) {
4894
+ tty->print_cr("current graph:");
4895
+ n->dump_bfs(MaxNodeLimit, nullptr, "S$");
4896
+ tty->cr();
4897
+ tty->print_cr("erroneous node:");
4898
+ n->dump();
4899
+ assert(false, "node should be in igvn hash table");
4900
+ }
4901
+#endif
4902
tn->set_type(t_no_spec);
4903
igvn.hash_insert(n);
4904
igvn._worklist.push(n); // give it a chance to go away
0 commit comments