Skip to content
Permalink
Browse files

8241365: Define Unique_Node_List::contains() to prevent usage by mistake

Reviewed-by: kvn, thartmann
  • Loading branch information
rwestrel committed Mar 20, 2020
1 parent eb003a7 commit b8f8dea9c2651ea34ebc6fac2e0503931e07f867
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/hotspot/share/opto/node.hpp
@@ -1558,6 +1558,11 @@ class Unique_Node_List : public Node_List {
// Used after parsing to remove useless nodes before Iterative GVN
void remove_useless_nodes(VectorSet& useful);

bool contains(const Node* n) const {
fatal("use faster member() instead");
return false;
}

#ifndef PRODUCT
void print_set() const { _in_worklist.print(); }
#endif

0 comments on commit b8f8dea

Please sign in to comment.