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 |