mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8222811: Consolidate MutexLockerEx and MutexLocker
Make MutexLocker be MutexLockerEx implementation, remove MutexLockerEx calls. Reviewed-by: dcubed, dholmes, pliden, rehn
This commit is contained in:
parent
88303d1c60
commit
fbafef11c0
127 changed files with 718 additions and 746 deletions
|
@ -1383,7 +1383,7 @@ class JavaThread: public Thread {
|
|||
|
||||
bool is_ext_suspend_completed(bool called_by_wait, int delay, uint32_t *bits);
|
||||
bool is_ext_suspend_completed_with_lock(uint32_t *bits) {
|
||||
MutexLockerEx ml(SR_lock(), Mutex::_no_safepoint_check_flag);
|
||||
MutexLocker ml(SR_lock(), Mutex::_no_safepoint_check_flag);
|
||||
// Warning: is_ext_suspend_completed() may temporarily drop the
|
||||
// SR_lock to allow the thread to reach a stable thread state if
|
||||
// it is currently in a transient thread state.
|
||||
|
@ -1424,7 +1424,7 @@ class JavaThread: public Thread {
|
|||
}
|
||||
|
||||
bool is_external_suspend_with_lock() const {
|
||||
MutexLockerEx ml(SR_lock(), Mutex::_no_safepoint_check_flag);
|
||||
MutexLocker ml(SR_lock(), Mutex::_no_safepoint_check_flag);
|
||||
return is_external_suspend();
|
||||
}
|
||||
|
||||
|
@ -1433,7 +1433,7 @@ class JavaThread: public Thread {
|
|||
bool handle_special_suspend_equivalent_condition() {
|
||||
assert(is_suspend_equivalent(),
|
||||
"should only be called in a suspend equivalence condition");
|
||||
MutexLockerEx ml(SR_lock(), Mutex::_no_safepoint_check_flag);
|
||||
MutexLocker ml(SR_lock(), Mutex::_no_safepoint_check_flag);
|
||||
bool ret = is_external_suspend();
|
||||
if (!ret) {
|
||||
// not about to self-suspend so clear suspend equivalence
|
||||
|
@ -1450,7 +1450,7 @@ class JavaThread: public Thread {
|
|||
|
||||
// utility methods to see if we are doing some kind of suspension
|
||||
bool is_being_ext_suspended() const {
|
||||
MutexLockerEx ml(SR_lock(), Mutex::_no_safepoint_check_flag);
|
||||
MutexLocker ml(SR_lock(), Mutex::_no_safepoint_check_flag);
|
||||
return is_ext_suspended() || is_external_suspend();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue