8184994: Add Dictionary size logging and jcmd

Added dcmd for printing system dictionary like the stringtable and symboltable and making print functions go to outputstream rather than tty

Reviewed-by: shade, hseigel
This commit is contained in:
Coleen Phillimore 2017-08-02 10:52:50 -04:00
parent 366e6ac796
commit 17f23d1881
30 changed files with 349 additions and 254 deletions

View file

@ -36,6 +36,7 @@
#include "oops/oop.inline.hpp"
#include "runtime/atomic.hpp"
#include "runtime/mutexLocker.hpp"
#include "services/diagnosticCommand.hpp"
#include "utilities/hashtable.inline.hpp"
// --------------------------------------------------------------------------
@ -550,7 +551,7 @@ void SymbolTable::verify() {
void SymbolTable::dump(outputStream* st, bool verbose) {
if (!verbose) {
the_table()->dump_table(st, "SymbolTable");
the_table()->print_table_statistics(st, "SymbolTable");
} else {
st->print_cr("VERSION: 1.0");
for (int i = 0; i < the_table()->table_size(); ++i) {