--- old/src/hotspot/share/utilities/hashtable.hpp 2019-09-26 22:30:01.046283388 +0800 +++ new/src/hotspot/share/utilities/hashtable.hpp 2019-09-26 22:30:00.899278269 +0800 @@ -30,6 +30,7 @@ #include "oops/oop.hpp" #include "oops/symbol.hpp" #include "runtime/handles.hpp" +#include "utilities/tableStatistics.hpp" // This is a generic hashtable, designed to be used for the symbol // and string tables. @@ -172,6 +173,8 @@ protected: + TableRateStatistics _stats_rate; + void initialize(int table_size, int entry_size, int number_of_entries); // Accessor @@ -265,6 +268,7 @@ return this->hash_to_index(compute_hash(name)); } + TableStatistics statistics_calculate(T (*literal_load_barrier)(HashtableEntry*) = NULL); void print_table_statistics(outputStream* st, const char *table_name, T (*literal_load_barrier)(HashtableEntry*) = NULL); protected: