Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
10311:386b77bf6427 | 10312:a5d6f0c3585f |
---|---|
280 // Function to move these elements into the new table. | 280 // Function to move these elements into the new table. |
281 void move_to(Hashtable<T, F>* new_table); | 281 void move_to(Hashtable<T, F>* new_table); |
282 static bool use_alternate_hashcode() { return _seed != 0; } | 282 static bool use_alternate_hashcode() { return _seed != 0; } |
283 static jint seed() { return _seed; } | 283 static jint seed() { return _seed; } |
284 | 284 |
285 static int literal_size(Symbol *symbol); | |
286 static int literal_size(oop oop); | |
287 | |
288 // The following two are currently not used, but are needed anyway because some | |
289 // C++ compilers (MacOS and Solaris) force the instantiation of | |
290 // Hashtable<ConstantPool*, mtClass>::dump_table() even though we never call this function | |
291 // in the VM code. | |
292 static int literal_size(ConstantPool *cp) {Unimplemented(); return 0;} | |
293 static int literal_size(Klass *k) {Unimplemented(); return 0;} | |
294 | |
295 public: | |
296 void dump_table(outputStream* st, const char *table_name); | |
297 | |
285 private: | 298 private: |
286 static jint _seed; | 299 static jint _seed; |
287 }; | 300 }; |
288 | 301 |
289 | 302 |