From 8889d4db2cbb013e2311ced5188087502ba6aef8 Mon Sep 17 00:00:00 2001 From: zgu Date: Tue, 30 Apr 2013 09:17:06 -0400 Subject: [PATCH] 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 --- src/share/vm/services/memBaseline.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/share/vm/services/memBaseline.cpp b/src/share/vm/services/memBaseline.cpp index e70821102..b090e95ac 100644 --- a/src/share/vm/services/memBaseline.cpp +++ b/src/share/vm/services/memBaseline.cpp @@ -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()); } } -- GitLab