mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -43,17 +43,6 @@ ConcurrentGCThread::ConcurrentGCThread() :
|
|||
_sts.initialize();
|
||||
};
|
||||
|
||||
void ConcurrentGCThread::stopWorldAndDo(VoidClosure* op) {
|
||||
MutexLockerEx x(Heap_lock,
|
||||
Mutex::_no_safepoint_check_flag);
|
||||
// warning("CGC: about to try stopping world");
|
||||
SafepointSynchronize::begin();
|
||||
// warning("CGC: successfully stopped world");
|
||||
op->do_void();
|
||||
SafepointSynchronize::end();
|
||||
// warning("CGC: successfully restarted world");
|
||||
}
|
||||
|
||||
void ConcurrentGCThread::safepoint_synchronize() {
|
||||
_sts.suspend_all();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue