equal
deleted
inserted
replaced
1940 (is_Java_thread() && !((JavaThread*)this)->has_last_Java_frame()), |
1940 (is_Java_thread() && !((JavaThread*)this)->has_last_Java_frame()), |
1941 "must have walkable stack"); |
1941 "must have walkable stack"); |
1942 |
1942 |
1943 MutexLockerEx ml(SR_lock(), Mutex::_no_safepoint_check_flag); |
1943 MutexLockerEx ml(SR_lock(), Mutex::_no_safepoint_check_flag); |
1944 |
1944 |
1945 assert(!this->is_any_suspended(), |
1945 assert(!this->is_ext_suspended(), |
1946 "a thread trying to self-suspend should not already be suspended"); |
1946 "a thread trying to self-suspend should not already be suspended"); |
1947 |
1947 |
1948 if (this->is_suspend_equivalent()) { |
1948 if (this->is_suspend_equivalent()) { |
1949 // If we are self-suspending as a result of the lifting of a |
1949 // If we are self-suspending as a result of the lifting of a |
1950 // suspend equivalent condition, then the suspend_equivalent |
1950 // suspend equivalent condition, then the suspend_equivalent |