Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp @ 6064:9d679effd28c
7166894: Add gc cause to GC logging for all collectors
Reviewed-by: mgerdin, johnc
author | brutisso |
---|---|
date | Tue, 15 May 2012 10:25:06 +0200 |
parents | 3a22b77e755a |
children | bbc900c2482a |
comparison
equal
deleted
inserted
replaced
6063:cdfa5139bd58 | 6064:9d679effd28c |
---|---|
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 (%s) (%s)", | 889 gclog_or_tty->print("[%s", (const char*)GCCauseString("GC pause", _g1->gc_cause()) |
890 GCCause::to_string(_g1->gc_cause()), | 890 .append(gcs_are_young() ? " (young)" : " (mixed)")); |
891 gcs_are_young() ? "young" : "mixed"); | |
892 } | 891 } |
893 | 892 |
894 // We only need to do this here as the policy will only be applied | 893 // We only need to do this here as the policy will only be applied |
895 // to the GC we're about to start. so, no point is calculating this | 894 // to the GC we're about to start. so, no point is calculating this |
896 // every time we calculate / recalculate the target young length. | 895 // every time we calculate / recalculate the target young length. |