changeset 39703:66722c5bc87a

8159893: StringTable cleaning log line lacks the GC ID prefix Reviewed-by: pliden, jmasa
author stefank
date Tue, 21 Jun 2016 14:00:18 +0200
parents ea7e9375bb93
children 157f39705057
files hotspot/src/share/vm/logging/logPrefix.hpp hotspot/test/gc/g1/TestStringSymbolTableStats.java
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
   }