equal
deleted
inserted
replaced
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 } |