8159893: StringTable cleaning log line lacks the GC ID prefix
authorstefank
Tue, 21 Jun 2016 14:00:18 +0200
changeset 39703 66722c5bc87a
parent 39702 ea7e9375bb93
child 39704 157f39705057
8159893: StringTable cleaning log line lacks the GC ID prefix Reviewed-by: pliden, jmasa
hotspot/src/share/vm/logging/logPrefix.hpp
hotspot/test/gc/g1/TestStringSymbolTableStats.java
--- a/hotspot/src/share/vm/logging/logPrefix.hpp	Thu Jul 07 14:58:17 2016 -0700
+++ b/hotspot/src/share/vm/logging/logPrefix.hpp	Tue Jun 21 14:00:18 2016 +0200
@@ -74,6 +74,7 @@
   LOG_PREFIX(GCId::print_prefix, LOG_TAGS(gc, ref)) \
   LOG_PREFIX(GCId::print_prefix, LOG_TAGS(gc, ref, start)) \
   LOG_PREFIX(GCId::print_prefix, LOG_TAGS(gc, start)) \
+  LOG_PREFIX(GCId::print_prefix, LOG_TAGS(gc, stringtable)) \
   LOG_PREFIX(GCId::print_prefix, LOG_TAGS(gc, sweep)) \
   LOG_PREFIX(GCId::print_prefix, LOG_TAGS(gc, task)) \
   LOG_PREFIX(GCId::print_prefix, LOG_TAGS(gc, task, start)) \
--- a/hotspot/test/gc/g1/TestStringSymbolTableStats.java	Thu Jul 07 14:58:17 2016 -0700
+++ b/hotspot/test/gc/g1/TestStringSymbolTableStats.java	Tue Jun 21 14:00:18 2016 +0200
@@ -46,7 +46,7 @@
 
     System.out.println("Output:\n" + output.getOutput());
 
-    output.shouldContain("Cleaned string and symbol table");
+    output.shouldMatch("GC\\(\\d+\\) Cleaned string and symbol table");
     output.shouldHaveExitValue(0);
   }