8152104: G1 StringTable cleaning incorrectly logs with the stringdedup tag
authorstefank
Fri, 18 Mar 2016 09:01:51 +0100
changeset 37147 3560f05bd7c7
parent 37146 209e0fe518bb
child 37148 042294ceef52
8152104: G1 StringTable cleaning incorrectly logs with the stringdedup tag Reviewed-by: mgerdin, jwilhelm, sjohanss
hotspot/src/share/vm/gc/g1/g1CollectedHeap.cpp
hotspot/src/share/vm/logging/logTag.hpp
hotspot/test/gc/g1/TestStringSymbolTableStats.java
--- 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());