mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
6876794: 4/4 sp07t002 hangs very intermittently
Remove over locking by VMThread on "is thread suspended?" check Reviewed-by: dholmes, acorn, andrew
This commit is contained in:
parent
4e453ff713
commit
f6523d1043
3 changed files with 18 additions and 13 deletions
|
@ -967,11 +967,6 @@ class JavaThread: public Thread {
|
|||
return (_suspend_flags & _ext_suspended) != 0;
|
||||
}
|
||||
|
||||
// legacy method that checked for either external suspension or vm suspension
|
||||
bool is_any_suspended() const {
|
||||
return is_ext_suspended();
|
||||
}
|
||||
|
||||
bool is_external_suspend_with_lock() const {
|
||||
MutexLockerEx ml(SR_lock(), Mutex::_no_safepoint_check_flag);
|
||||
return is_external_suspend();
|
||||
|
@ -997,10 +992,6 @@ class JavaThread: public Thread {
|
|||
return ret;
|
||||
}
|
||||
|
||||
bool is_any_suspended_with_lock() const {
|
||||
MutexLockerEx ml(SR_lock(), Mutex::_no_safepoint_check_flag);
|
||||
return is_any_suspended();
|
||||
}
|
||||
// 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue