src/hotspot/share/classfile/compactHashtable.hpp
changeset 51405 8b23aa7cef47
parent 49364 601146c66cad
child 51823 2a51125b2794
equal deleted inserted replaced
51404:c5461fe16efb 51405:8b23aa7cef47
   229 
   229 
   230   bool exists(u4 value);
   230   bool exists(u4 value);
   231 
   231 
   232   // For reading from/writing to the CDS archive
   232   // For reading from/writing to the CDS archive
   233   void serialize(SerializeClosure* soc);
   233   void serialize(SerializeClosure* soc);
       
   234 
       
   235   inline bool empty() {
       
   236     return (_entry_count == 0);
       
   237   }
   234 };
   238 };
   235 
   239 
   236 template <class T, class N> class CompactHashtable : public SimpleCompactHashtable {
   240 template <class T, class N> class CompactHashtable : public SimpleCompactHashtable {
   237   friend class VMStructs;
   241   friend class VMStructs;
   238 
   242