8152104: G1 StringTable cleaning incorrectly logs with the stringdedup tag

Reviewed-by: mgerdin, jwilhelm, sjohanss
This commit is contained in:
Stefan Karlsson 2016-03-18 09:01:51 +01:00
parent a15383123d
commit 97d34dd67a
3 changed files with 8 additions and 6 deletions

View File

@ -3743,11 +3743,12 @@ public:
"claim value %d after unlink less than initial symbol table size %d",
SymbolTable::parallel_claimed_index(), _initial_symbol_table_size);
log_debug(gc, stringdedup)("Cleaned string and symbol table, "
"strings: " SIZE_FORMAT " processed, " SIZE_FORMAT " removed, "
"symbols: " SIZE_FORMAT " processed, " SIZE_FORMAT " removed",
strings_processed(), strings_removed(),
symbols_processed(), symbols_removed());
log_info(gc, stringtable)(
"Cleaned string and symbol table, "
"strings: " SIZE_FORMAT " processed, " SIZE_FORMAT " removed, "
"symbols: " SIZE_FORMAT " processed, " SIZE_FORMAT " removed",
strings_processed(), strings_removed(),
symbols_processed(), symbols_removed());
}
void work(uint worker_id) {

View File

@ -84,6 +84,7 @@
LOG_TAG(state) \
LOG_TAG(stats) \
LOG_TAG(stringdedup) \
LOG_TAG(stringtable) \
LOG_TAG(survivor) \
LOG_TAG(sweep) \
LOG_TAG(task) \

View File

@ -39,7 +39,7 @@ public class TestStringSymbolTableStats {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC",
"-XX:+UnlockExperimentalVMOptions",
"-Xlog:gc+stringdedup=trace",
"-Xlog:gc+stringtable=trace",
SystemGCTest.class.getName());
OutputAnalyzer output = new OutputAnalyzer(pb.start());