Mercurial > hg > graal-jvmci-8
diff src/share/vm/utilities/hashtable.hpp @ 10312:a5d6f0c3585f
8014262: PrintStringTableStatistics should include more footprint info
Summary: Added info for the string/symbol objects and the hash entries
Reviewed-by: coleenp, rbackman
author | iklam |
---|---|
date | Sat, 18 May 2013 20:41:01 -0700 |
parents | da91efe96a93 |
children | de6a9e811145 |
line wrap: on
line diff
--- a/src/share/vm/utilities/hashtable.hpp Fri May 17 17:52:07 2013 -0700 +++ b/src/share/vm/utilities/hashtable.hpp Sat May 18 20:41:01 2013 -0700 @@ -282,6 +282,19 @@ static bool use_alternate_hashcode() { return _seed != 0; } static jint seed() { return _seed; } + static int literal_size(Symbol *symbol); + static int literal_size(oop oop); + + // The following two are currently not used, but are needed anyway because some + // C++ compilers (MacOS and Solaris) force the instantiation of + // Hashtable<ConstantPool*, mtClass>::dump_table() even though we never call this function + // in the VM code. + static int literal_size(ConstantPool *cp) {Unimplemented(); return 0;} + static int literal_size(Klass *k) {Unimplemented(); return 0;} + +public: + void dump_table(outputStream* st, const char *table_name); + private: static jint _seed; };