mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8074355: make MutexLocker smarter about non-JavaThreads
Use safepoint_check_always/safepoint_check_never instead of safepoint_check_sometimes for locks that are taken by JavaThreads and non-JavaThreads Reviewed-by: dholmes, rehn, dcubed, lmesnik
This commit is contained in:
parent
0ab425c187
commit
6fb8502b77
10 changed files with 191 additions and 73 deletions
|
@ -623,10 +623,8 @@ void VMThread::loop() {
|
|||
}
|
||||
|
||||
//
|
||||
// Notify (potential) waiting Java thread(s) - lock without safepoint
|
||||
// check so that sneaking is not possible
|
||||
{ MutexLocker mu(VMOperationRequest_lock,
|
||||
Mutex::_no_safepoint_check_flag);
|
||||
// Notify (potential) waiting Java thread(s)
|
||||
{ MutexLocker mu(VMOperationRequest_lock, Mutex::_no_safepoint_check_flag);
|
||||
VMOperationRequest_lock->notify_all();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue