comparison src/share/vm/memory/defNewGeneration.cpp @ 20190:0982ec23da03

8043607: Add a GC id as a log decoration similar to PrintGCTimeStamps Reviewed-by: jwilhelm, ehelin, tschatzl
author brutisso
date Thu, 19 Jun 2014 13:31:14 +0200
parents 78bbf4d43a14
children c49dcaf78a65
comparison
equal deleted inserted replaced
20189:5d855d021755 20190:0982ec23da03
582 } 582 }
583 assert(to()->is_empty(), "Else not collection_attempt_is_safe"); 583 assert(to()->is_empty(), "Else not collection_attempt_is_safe");
584 584
585 init_assuming_no_promotion_failure(); 585 init_assuming_no_promotion_failure();
586 586
587 GCTraceTime t1(GCCauseString("GC", gch->gc_cause()), PrintGC && !PrintGCDetails, true, NULL); 587 GCTraceTime t1(GCCauseString("GC", gch->gc_cause()), PrintGC && !PrintGCDetails, true, NULL, gc_tracer.gc_id());
588 // Capture heap used before collection (for printing). 588 // Capture heap used before collection (for printing).
589 size_t gch_prev_used = gch->used(); 589 size_t gch_prev_used = gch->used();
590 590
591 gch->trace_heap_before_gc(&gc_tracer); 591 gch->trace_heap_before_gc(&gc_tracer);
592 592
640 FastKeepAliveClosure keep_alive(this, &scan_weak_ref); 640 FastKeepAliveClosure keep_alive(this, &scan_weak_ref);
641 ReferenceProcessor* rp = ref_processor(); 641 ReferenceProcessor* rp = ref_processor();
642 rp->setup_policy(clear_all_soft_refs); 642 rp->setup_policy(clear_all_soft_refs);
643 const ReferenceProcessorStats& stats = 643 const ReferenceProcessorStats& stats =
644 rp->process_discovered_references(&is_alive, &keep_alive, &evacuate_followers, 644 rp->process_discovered_references(&is_alive, &keep_alive, &evacuate_followers,
645 NULL, _gc_timer); 645 NULL, _gc_timer, gc_tracer.gc_id());
646 gc_tracer.report_gc_reference_stats(stats); 646 gc_tracer.report_gc_reference_stats(stats);
647 647
648 if (!_promotion_failed) { 648 if (!_promotion_failed) {
649 // Swap the survivor spaces. 649 // Swap the survivor spaces.
650 eden()->clear(SpaceDecorator::Mangle); 650 eden()->clear(SpaceDecorator::Mangle);