# HG changeset patch # User zgu # Date 1367327826 14400 # Node ID ed5a590835a4c18512e89922e69523f845040693 # Parent 409d4b59e095af125afbb90fe58c801e45c5a349 8013214: BigApps fails due to 'fatal error: Illegal threadstate encountered: 6' Summary: Grab and drop SR_lock to get the thread to honor the safepoint protocol Reviewed-by: dcubed, coleenp diff -r 409d4b59e095 -r ed5a590835a4 src/share/vm/services/memBaseline.cpp --- a/src/share/vm/services/memBaseline.cpp Tue Apr 30 02:28:42 2013 -0700 +++ b/src/share/vm/services/memBaseline.cpp Tue Apr 30 09:17:06 2013 -0400 @@ -156,7 +156,8 @@ // 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()); } }