hotspot/src/share/vm/utilities/hashtable.cpp
changeset 42073 89e056fd82cc
parent 39982 1a3808e3f4d9
child 46435 3f6cac9867d4
child 45114 45644c5f6b8e
equal deleted inserted replaced
42072:d7029af8cb0c 42073:89e056fd82cc
   340 
   340 
   341 #endif // PRODUCT
   341 #endif // PRODUCT
   342 
   342 
   343 #ifdef ASSERT
   343 #ifdef ASSERT
   344 
   344 
   345 template <MEMFLAGS F> bool BasicHashtable<F>::verify_lookup_length(double load) {
   345 template <MEMFLAGS F> bool BasicHashtable<F>::verify_lookup_length(double load, const char *table_name) {
   346   if ((!_lookup_warning) && (_lookup_count != 0)
   346   if ((!_lookup_warning) && (_lookup_count != 0)
   347       && ((double)_lookup_length / (double)_lookup_count > load * 2.0)) {
   347       && ((double)_lookup_length / (double)_lookup_count > load * 2.0)) {
   348     warning("Performance bug: SystemDictionary lookup_count=%d "
   348     warning("Performance bug: %s lookup_count=%d "
   349             "lookup_length=%d average=%lf load=%f",
   349             "lookup_length=%d average=%lf load=%f",
   350             _lookup_count, _lookup_length,
   350             table_name, _lookup_count, _lookup_length,
   351             (double)_lookup_length / _lookup_count, load);
   351             (double)_lookup_length / _lookup_count, load);
   352     _lookup_warning = true;
   352     _lookup_warning = true;
   353 
   353 
   354     return false;
   354     return false;
   355   }
   355   }