--- old/src/hotspot/share/classfile/stringTable.cpp 2019-09-26 22:29:52.858998269 +0800 +++ new/src/hotspot/share/classfile/stringTable.cpp 2019-09-26 22:29:52.711993150 +0800 @@ -636,6 +636,13 @@ }; }; +TableStatistics StringTable::get_table_statistics() { + static TableStatistics ts; + SizeFunc sz; + ts = _local_table->statistics_get(Thread::current(), sz, ts); + return ts; +} + void StringTable::print_table_statistics(outputStream* st, const char* table_name) { SizeFunc sz;