提交 5700cf82 编写于 作者: C coleenp

7024584: Symbol printouts shouldnt be under PrintGCDetails

Summary: Put symbol printing under Verbose and WizardMode so you can get this information if you really want it.
Reviewed-by: phh, stefank, never, dholmes, jcoomes
上级 b8a89a9f
...@@ -88,7 +88,7 @@ int SymbolTable::symbols_counted = 0; ...@@ -88,7 +88,7 @@ int SymbolTable::symbols_counted = 0;
void SymbolTable::unlink() { void SymbolTable::unlink() {
int removed = 0; int removed = 0;
int total = 0; int total = 0;
int memory_total = 0; size_t memory_total = 0;
for (int i = 0; i < the_table()->table_size(); ++i) { for (int i = 0; i < the_table()->table_size(); ++i) {
for (HashtableEntry<Symbol*>** p = the_table()->bucket_addr(i); *p != NULL; ) { for (HashtableEntry<Symbol*>** p = the_table()->bucket_addr(i); *p != NULL; ) {
HashtableEntry<Symbol*>* entry = *p; HashtableEntry<Symbol*>* entry = *p;
...@@ -112,8 +112,10 @@ void SymbolTable::unlink() { ...@@ -112,8 +112,10 @@ void SymbolTable::unlink() {
} }
symbols_removed += removed; symbols_removed += removed;
symbols_counted += total; symbols_counted += total;
if (PrintGCDetails) { // Exclude printing for normal PrintGCDetails because people parse
gclog_or_tty->print(" [Symbols=%d size=%dK] ", total, // this output.
if (PrintGCDetails && Verbose && WizardMode) {
gclog_or_tty->print(" [Symbols=%d size=" SIZE_FORMAT "K] ", total,
(memory_total*HeapWordSize)/1024); (memory_total*HeapWordSize)/1024);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册