Mercurial > hg > graal-jvmci-8
diff src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp @ 6030:48fac5d60c3c
7163848: G1: Log GC Cause for a GC
Reviewed-by: johnc, jwilhelm, jmasa
author | brutisso |
---|---|
date | Wed, 25 Apr 2012 12:36:37 +0200 |
parents | 8a2e5a6a19a4 |
children | 3a22b77e755a |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Wed Apr 25 15:51:10 2012 -0700 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Wed Apr 25 12:36:37 2012 +0200 @@ -886,8 +886,9 @@ size_t start_used) { if (G1Log::finer()) { gclog_or_tty->stamp(PrintGCTimeStamps); - gclog_or_tty->print("[GC pause"); - gclog_or_tty->print(" (%s)", gcs_are_young() ? "young" : "mixed"); + gclog_or_tty->print("[GC pause (%s) (%s)", + GCCause::to_string(_g1->gc_cause()), + gcs_are_young() ? "young" : "mixed"); } // We only need to do this here as the policy will only be applied