< prev index next >

src/share/vm/classfile/symbolTable.cpp

Print this page

        

*** 542,560 **** } } ch_table.dump(top, end); ! *top = (char*)align_pointer_up(*top, sizeof(void*)); #endif return true; } const char* SymbolTable::init_shared_table(const char* buffer) { const char* end = _shared_table.init( CompactHashtable<Symbol*, char>::_symbol_table, buffer); ! return (const char*)align_pointer_up(end, sizeof(void*)); } //--------------------------------------------------------------------------- // Non-product code --- 542,560 ---- } } ch_table.dump(top, end); ! *top = (char*)align_ptr_up(*top, sizeof(void*)); #endif return true; } const char* SymbolTable::init_shared_table(const char* buffer) { const char* end = _shared_table.init( CompactHashtable<Symbol*, char>::_symbol_table, buffer); ! return (const char*)align_ptr_up(end, sizeof(void*)); } //--------------------------------------------------------------------------- // Non-product code
*** 598,608 **** } } tty->print_cr("Symbol Table Histogram:"); tty->print_cr(" Total number of symbols %7d", total_count); tty->print_cr(" Total size in memory %7dK", ! (total_size*HeapWordSize)/1024); tty->print_cr(" Total counted %7d", _symbols_counted); tty->print_cr(" Total removed %7d", _symbols_removed); if (_symbols_counted > 0) { tty->print_cr(" Percent removed %3.2f", ((float)_symbols_removed/(float)_symbols_counted)* 100); --- 598,608 ---- } } tty->print_cr("Symbol Table Histogram:"); tty->print_cr(" Total number of symbols %7d", total_count); tty->print_cr(" Total size in memory %7dK", ! (total_size*wordSize)/1024); tty->print_cr(" Total counted %7d", _symbols_counted); tty->print_cr(" Total removed %7d", _symbols_removed); if (_symbols_counted > 0) { tty->print_cr(" Percent removed %3.2f", ((float)_symbols_removed/(float)_symbols_counted)* 100);
*** 615,629 **** tty->print_cr(" Average symbol length %7.2f", ((float) total_length / (float) total_count)); tty->print_cr(" Symbol length histogram:"); tty->print_cr(" %6s %10s %10s", "Length", "#Symbols", "Size"); for (i = 0; i < results_length; i++) { if (counts[i] > 0) { ! tty->print_cr(" %6d %10d %10dK", i, counts[i], (sizes[i]*HeapWordSize)/1024); } } tty->print_cr(" >=%6d %10d %10dK\n", results_length, ! out_of_range_count, (out_of_range_size*HeapWordSize)/1024); } void SymbolTable::print() { for (int i = 0; i < the_table()->table_size(); ++i) { HashtableEntry<Symbol*, mtSymbol>** p = the_table()->bucket_addr(i); --- 615,629 ---- tty->print_cr(" Average symbol length %7.2f", ((float) total_length / (float) total_count)); tty->print_cr(" Symbol length histogram:"); tty->print_cr(" %6s %10s %10s", "Length", "#Symbols", "Size"); for (i = 0; i < results_length; i++) { if (counts[i] > 0) { ! tty->print_cr(" %6d %10d %10dK", i, counts[i], (sizes[i]*wordSize)/1024); } } tty->print_cr(" >=%6d %10d %10dK\n", results_length, ! out_of_range_count, (out_of_range_size*wordSize)/1024); } void SymbolTable::print() { for (int i = 0; i < the_table()->table_size(); ++i) { HashtableEntry<Symbol*, mtSymbol>** p = the_table()->bucket_addr(i);
< prev index next >