mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
6941923: RFE: Handling large log files produced by long running Java Applications
Supply optinal flags to realize gc log rotation Reviewed-by: ysr, jwilhelm
This commit is contained in:
parent
6d6d8a571c
commit
5d0ad03a55
10 changed files with 341 additions and 19 deletions
|
@ -511,6 +511,11 @@ void SafepointSynchronize::do_cleanup_tasks() {
|
|||
|
||||
TraceTime t4("sweeping nmethods", TraceSafepointCleanupTime);
|
||||
NMethodSweeper::scan_stacks();
|
||||
|
||||
// rotate log files?
|
||||
if (UseGCLogFileRotation) {
|
||||
gclog_or_tty->rotate_log();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue