8159893: StringTable cleaning log line lacks the GC ID prefix
Reviewed-by: pliden, jmasa
--- 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);
}