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:
Yumin Qi 2011-06-10 15:08:36 -07:00
parent 6d6d8a571c
commit 5d0ad03a55
10 changed files with 341 additions and 19 deletions

View file

@ -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();
}
}