8013214: BigApps fails due to 'fatal error: Illegal threadstate encountered: 6'

Grab and drop SR_lock to get the thread to honor the safepoint protocol

Reviewed-by: dcubed, coleenp
This commit is contained in:
Zhengyu Gu 2013-04-30 09:17:06 -04:00
parent c8db53ce50
commit a2f5f4ca1b

View file

@ -156,7 +156,8 @@ bool MemBaseline::baseline_malloc_summary(const MemPointerArray* malloc_records)
// for the safepoint
void MemBaseline::check_safepoint(JavaThread* thr) {
if (SafepointSynchronize::is_synchronizing()) {
SafepointSynchronize::block(thr);
// grab and drop the SR_lock to honor the safepoint protocol
MutexLocker ml(thr->SR_lock());
}
}