comparison src/share/vm/memory/defNewGeneration.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 b632e80fc9dc
children da91efe96a93
comparison
equal deleted inserted replaced
6063:cdfa5139bd58 6064:9d679effd28c
546 } 546 }
547 assert(to()->is_empty(), "Else not collection_attempt_is_safe"); 547 assert(to()->is_empty(), "Else not collection_attempt_is_safe");
548 548
549 init_assuming_no_promotion_failure(); 549 init_assuming_no_promotion_failure();
550 550
551 TraceTime t1("GC", PrintGC && !PrintGCDetails, true, gclog_or_tty); 551 TraceTime t1(GCCauseString("GC", gch->gc_cause()), PrintGC && !PrintGCDetails, true, gclog_or_tty);
552 // Capture heap used before collection (for printing). 552 // Capture heap used before collection (for printing).
553 size_t gch_prev_used = gch->used(); 553 size_t gch_prev_used = gch->used();
554 554
555 SpecializationStats::clear(); 555 SpecializationStats::clear();
556 556