diff src/share/vm/memory/genMarkSweep.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 d903bf750e9f
children d2a62e0f25eb
line wrap: on
line diff
--- a/src/share/vm/memory/genMarkSweep.cpp	Tue May 15 22:26:37 2012 +0200
+++ b/src/share/vm/memory/genMarkSweep.cpp	Tue May 15 10:25:06 2012 +0200
@@ -76,7 +76,7 @@
   _ref_processor = rp;
   rp->setup_policy(clear_all_softrefs);
 
-  TraceTime t1("Full GC", PrintGC && !PrintGCDetails, true, gclog_or_tty);
+  TraceTime t1(GCCauseString("Full GC", gch->gc_cause()), PrintGC && !PrintGCDetails, true, gclog_or_tty);
 
   // When collecting the permanent generation methodOops may be moving,
   // so we either have to flush all bcp data or convert it into bci.