Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

8321204: C2: assert(false) failed: node should be in igvn hash table #245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions src/hotspot/share/opto/compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4917,16 +4917,7 @@ void Compile::remove_speculative_types(PhaseIterGVN &igvn) {
const Type* t_no_spec = t->remove_speculative();
if (t_no_spec != t) {
bool in_hash = igvn.hash_delete(n);
#ifdef ASSERT
if (!in_hash) {
tty->print_cr("current graph:");
n->dump_bfs(MaxNodeLimit, nullptr, "S$");
tty->cr();
tty->print_cr("erroneous node:");
n->dump();
assert(false, "node should be in igvn hash table");
}
#endif
assert(in_hash || n->hash() == Node::NO_HASH, "node should be in igvn hash table");
tn->set_type(t_no_spec);
igvn.hash_insert(n);
igvn._worklist.push(n); // give it a chance to go away
Expand Down