From b8f8dea9c2651ea34ebc6fac2e0503931e07f867 Mon Sep 17 00:00:00 2001 From: Roland Westrelin Date: Fri, 20 Mar 2020 13:58:05 +0100 Subject: [PATCH] 8241365: Define Unique_Node_List::contains() to prevent usage by mistake Reviewed-by: kvn, thartmann --- src/hotspot/share/opto/node.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hotspot/share/opto/node.hpp b/src/hotspot/share/opto/node.hpp index 6d05eefe62e..dc89579998d 100644 --- a/src/hotspot/share/opto/node.hpp +++ b/src/hotspot/share/opto/node.hpp @@ -1558,6 +1558,11 @@ public: // 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