comparison 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
comparison
equal deleted inserted replaced
3765:ae5b2f1dcf12 3767:2a241e764894
509 CompilationPolicy::policy()->do_safepoint_work(); 509 CompilationPolicy::policy()->do_safepoint_work();
510 } 510 }
511 511
512 TraceTime t4("sweeping nmethods", TraceSafepointCleanupTime); 512 TraceTime t4("sweeping nmethods", TraceSafepointCleanupTime);
513 NMethodSweeper::scan_stacks(); 513 NMethodSweeper::scan_stacks();
514
515 // rotate log files?
516 if (UseGCLogFileRotation) {
517 gclog_or_tty->rotate_log();
518 }
514 } 519 }
515 520
516 521
517 bool SafepointSynchronize::safepoint_safe(JavaThread *thread, JavaThreadState state) { 522 bool SafepointSynchronize::safepoint_safe(JavaThread *thread, JavaThreadState state) {
518 switch(state) { 523 switch(state) {