mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
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:
parent
c8db53ce50
commit
a2f5f4ca1b
1 changed files with 2 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue