Mercurial > hg > graal-compiler
diff src/share/vm/runtime/safepoint.cpp @ 3767:2a241e764894
6941923: RFE: Handling large log files produced by long running Java Applications
Summary: supply optinal flags to realize gc log rotation
Reviewed-by: ysr, jwilhelm
author | minqi |
---|---|
date | Fri, 10 Jun 2011 15:08:36 -0700 |
parents | 1d1603768966 |
children | f08d439fab8c |
line wrap: on
line diff
--- a/src/share/vm/runtime/safepoint.cpp Wed Jun 08 21:48:38 2011 -0400 +++ b/src/share/vm/runtime/safepoint.cpp Fri Jun 10 15:08:36 2011 -0700 @@ -511,6 +511,11 @@ TraceTime t4("sweeping nmethods", TraceSafepointCleanupTime); NMethodSweeper::scan_stacks(); + + // rotate log files? + if (UseGCLogFileRotation) { + gclog_or_tty->rotate_log(); + } }