mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8043607: Add a GC id as a log decoration similar to PrintGCTimeStamps
Reviewed-by: jwilhelm, ehelin, tschatzl
This commit is contained in:
parent
ad2e593b80
commit
9672a26d51
32 changed files with 404 additions and 174 deletions
|
@ -585,7 +585,7 @@ void DefNewGeneration::collect(bool full,
|
|||
|
||||
init_assuming_no_promotion_failure();
|
||||
|
||||
GCTraceTime t1(GCCauseString("GC", gch->gc_cause()), PrintGC && !PrintGCDetails, true, NULL);
|
||||
GCTraceTime t1(GCCauseString("GC", gch->gc_cause()), PrintGC && !PrintGCDetails, true, NULL, gc_tracer.gc_id());
|
||||
// Capture heap used before collection (for printing).
|
||||
size_t gch_prev_used = gch->used();
|
||||
|
||||
|
@ -641,7 +641,7 @@ void DefNewGeneration::collect(bool full,
|
|||
rp->setup_policy(clear_all_soft_refs);
|
||||
const ReferenceProcessorStats& stats =
|
||||
rp->process_discovered_references(&is_alive, &keep_alive, &evacuate_followers,
|
||||
NULL, _gc_timer);
|
||||
NULL, _gc_timer, gc_tracer.gc_id());
|
||||
gc_tracer.report_gc_reference_stats(stats);
|
||||
|
||||
if (!_promotion_failed) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue