< prev index next >

src/hotspot/share/classfile/compactHashtable.hpp

Print this page

        

@@ -229,10 +229,14 @@
 
   bool exists(u4 value);
 
   // For reading from/writing to the CDS archive
   void serialize(SerializeClosure* soc);
+
+  inline bool empty() {
+    return (_entry_count==0);
+  }
 };
 
 template <class T, class N> class CompactHashtable : public SimpleCompactHashtable {
   friend class VMStructs;
 
< prev index next >