提交 8889d4db 编写于 作者: Z zgu

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
上级 4df056de
...@@ -156,7 +156,8 @@ bool MemBaseline::baseline_malloc_summary(const MemPointerArray* malloc_records) ...@@ -156,7 +156,8 @@ bool MemBaseline::baseline_malloc_summary(const MemPointerArray* malloc_records)
// for the safepoint // for the safepoint
void MemBaseline::check_safepoint(JavaThread* thr) { void MemBaseline::check_safepoint(JavaThread* thr) {
if (SafepointSynchronize::is_synchronizing()) { if (SafepointSynchronize::is_synchronizing()) {
SafepointSynchronize::block(thr); // grab and drop the SR_lock to honor the safepoint protocol
MutexLocker ml(thr->SR_lock());
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册