src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp

changeset 3734
48fac5d60c3c
parent 3731
8a2e5a6a19a4
child 3762
3a22b77e755a
     1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp	Wed Apr 25 15:51:10 2012 -0700
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp	Wed Apr 25 12:36:37 2012 +0200
     1.3 @@ -886,8 +886,9 @@
     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");
     1.8 -    gclog_or_tty->print(" (%s)", gcs_are_young() ? "young" : "mixed");
     1.9 +    gclog_or_tty->print("[GC pause (%s) (%s)",
    1.10 +      GCCause::to_string(_g1->gc_cause()),
    1.11 +      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

mercurial