mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
7166894: Add gc cause to GC logging for all collectors
Reviewed-by: mgerdin, johnc
This commit is contained in:
parent
b2d4591455
commit
eba9965d54
16 changed files with 75 additions and 54 deletions
|
@ -548,7 +548,7 @@ void DefNewGeneration::collect(bool full,
|
|||
|
||||
init_assuming_no_promotion_failure();
|
||||
|
||||
TraceTime t1("GC", PrintGC && !PrintGCDetails, true, gclog_or_tty);
|
||||
TraceTime t1(GCCauseString("GC", gch->gc_cause()), PrintGC && !PrintGCDetails, true, gclog_or_tty);
|
||||
// Capture heap used before collection (for printing).
|
||||
size_t gch_prev_used = gch->used();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue