Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.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 | f69a5d43dc19 |
children | d2a62e0f25eb |
comparison
equal
deleted
inserted
replaced
6063:cdfa5139bd58 | 6064:9d679effd28c |
---|---|
6330 _cmsGen->rotate_debug_collection_type(); | 6330 _cmsGen->rotate_debug_collection_type(); |
6331 } | 6331 } |
6332 ) | 6332 ) |
6333 } | 6333 } |
6334 | 6334 |
6335 void CMSCollector::do_CMS_operation(CMS_op_type op) { | 6335 void CMSCollector::do_CMS_operation(CMS_op_type op, GCCause::Cause gc_cause) { |
6336 gclog_or_tty->date_stamp(PrintGC && PrintGCDateStamps); | 6336 gclog_or_tty->date_stamp(PrintGC && PrintGCDateStamps); |
6337 TraceCPUTime tcpu(PrintGCDetails, true, gclog_or_tty); | 6337 TraceCPUTime tcpu(PrintGCDetails, true, gclog_or_tty); |
6338 TraceTime t("GC", PrintGC, !PrintGCDetails, gclog_or_tty); | 6338 TraceTime t(GCCauseString("GC", gc_cause), PrintGC, !PrintGCDetails, gclog_or_tty); |
6339 TraceCollectorStats tcs(counters()); | 6339 TraceCollectorStats tcs(counters()); |
6340 | 6340 |
6341 switch (op) { | 6341 switch (op) { |
6342 case CMS_op_checkpointRootsInitial: { | 6342 case CMS_op_checkpointRootsInitial: { |
6343 SvcGCMarker sgcm(SvcGCMarker::OTHER); | 6343 SvcGCMarker sgcm(SvcGCMarker::OTHER); |