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) { |