Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
6029:ee89f2110312 | 6030:48fac5d60c3c |
---|---|
884 | 884 |
885 void G1CollectorPolicy::record_collection_pause_start(double start_time_sec, | 885 void G1CollectorPolicy::record_collection_pause_start(double start_time_sec, |
886 size_t start_used) { | 886 size_t start_used) { |
887 if (G1Log::finer()) { | 887 if (G1Log::finer()) { |
888 gclog_or_tty->stamp(PrintGCTimeStamps); | 888 gclog_or_tty->stamp(PrintGCTimeStamps); |
889 gclog_or_tty->print("[GC pause"); | 889 gclog_or_tty->print("[GC pause (%s) (%s)", |
890 gclog_or_tty->print(" (%s)", gcs_are_young() ? "young" : "mixed"); | 890 GCCause::to_string(_g1->gc_cause()), |
891 gcs_are_young() ? "young" : "mixed"); | |
891 } | 892 } |
892 | 893 |
893 // We only need to do this here as the policy will only be applied | 894 // We only need to do this here as the policy will only be applied |
894 // to the GC we're about to start. so, no point is calculating this | 895 // to the GC we're about to start. so, no point is calculating this |
895 // every time we calculate / recalculate the target young length. | 896 // every time we calculate / recalculate the target young length. |