Mercurial > hg > graal-compiler
diff src/share/vm/services/memBaseline.cpp @ 10160:ed5a590835a4
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
author | zgu |
---|---|
date | Tue, 30 Apr 2013 09:17:06 -0400 |
parents | fbca7eaeac2e |
children | f2110083203d |
line wrap: on
line diff
--- 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()); } }