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:
Daniel D. Daugherty 2009-09-22 21:12:37 -06:00
parent 4e453ff713
commit f6523d1043
3 changed files with 18 additions and 13 deletions

View file

@ -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);