*** 229,238 **** --- 229,242 ---- 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;