8152104: G1 StringTable cleaning incorrectly logs with the stringdedup tag
Reviewed-by: mgerdin, jwilhelm, sjohanss
--- a/hotspot/src/share/vm/gc/g1/g1CollectedHeap.cpp Fri Mar 18 08:59:07 2016 +0100
+++ b/hotspot/src/share/vm/gc/g1/g1CollectedHeap.cpp Fri Mar 18 09:01:51 2016 +0100
@@ -3743,11 +3743,12 @@
"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) {
--- a/hotspot/src/share/vm/logging/logTag.hpp Fri Mar 18 08:59:07 2016 +0100
+++ b/hotspot/src/share/vm/logging/logTag.hpp Fri Mar 18 09:01:51 2016 +0100
@@ -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) \
--- a/hotspot/test/gc/g1/TestStringSymbolTableStats.java Fri Mar 18 08:59:07 2016 +0100
+++ b/hotspot/test/gc/g1/TestStringSymbolTableStats.java Fri Mar 18 09:01:51 2016 +0100
@@ -39,7 +39,7 @@
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());