1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Tue May 15 22:26:37 2012 +0200 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Tue May 15 10:25:06 2012 +0200 1.3 @@ -886,9 +886,8 @@ 1.4 size_t start_used) { 1.5 if (G1Log::finer()) { 1.6 gclog_or_tty->stamp(PrintGCTimeStamps); 1.7 - gclog_or_tty->print("[GC pause (%s) (%s)", 1.8 - GCCause::to_string(_g1->gc_cause()), 1.9 - gcs_are_young() ? "young" : "mixed"); 1.10 + gclog_or_tty->print("[%s", (const char*)GCCauseString("GC pause", _g1->gc_cause()) 1.11 + .append(gcs_are_young() ? " (young)" : " (mixed)")); 1.12 } 1.13 1.14 // We only need to do this here as the policy will only be applied