hotspot/src/share/vm/runtime/thread.cpp
changeset 3826 67b89f5a5cac
parent 3261 c7d5aae8d3f7
child 3916 9acd7f9d4f52
equal deleted inserted replaced
3825:6734b8b1adf1 3826:67b89f5a5cac
  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