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

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