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 0a2e2e7 commit f953b8aCopy full SHA for f953b8a
src/hotspot/share/opto/compile.cpp
@@ -4907,7 +4907,16 @@ void Compile::remove_speculative_types(PhaseIterGVN &igvn) {
4907
const Type* t_no_spec = t->remove_speculative();
4908
if (t_no_spec != t) {
4909
bool in_hash = igvn.hash_delete(n);
4910
- assert(in_hash, "node should be in igvn hash table");
+#ifdef ASSERT
4911
+ if (!in_hash) {
4912
+ tty->print_cr("current graph:");
4913
+ n->dump_bfs(MaxNodeLimit, nullptr, "S$");
4914
+ tty->cr();
4915
+ tty->print_cr("erroneous node:");
4916
+ n->dump();
4917
+ assert(false, "node should be in igvn hash table");
4918
+ }
4919
+#endif
4920
tn->set_type(t_no_spec);
4921
igvn.hash_insert(n);
4922
igvn._worklist.push(n); // give it a chance to go away
0 commit comments