comparison 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
comparison
equal deleted inserted replaced
6063:cdfa5139bd58 6064:9d679effd28c
74 assert(ref_processor() == NULL, "no stomping"); 74 assert(ref_processor() == NULL, "no stomping");
75 assert(rp != NULL, "should be non-NULL"); 75 assert(rp != NULL, "should be non-NULL");
76 _ref_processor = rp; 76 _ref_processor = rp;
77 rp->setup_policy(clear_all_softrefs); 77 rp->setup_policy(clear_all_softrefs);
78 78
79 TraceTime t1("Full GC", PrintGC && !PrintGCDetails, true, gclog_or_tty); 79 TraceTime t1(GCCauseString("Full GC", gch->gc_cause()), PrintGC && !PrintGCDetails, true, gclog_or_tty);
80 80
81 // When collecting the permanent generation methodOops may be moving, 81 // When collecting the permanent generation methodOops may be moving,
82 // so we either have to flush all bcp data or convert it into bci. 82 // so we either have to flush all bcp data or convert it into bci.
83 CodeCache::gc_prologue(); 83 CodeCache::gc_prologue();
84 Threads::gc_prologue(); 84 Threads::gc_prologue();