src/hotspot/share/runtime/os.cpp
changeset 54623 1126f0607c70
parent 54436 d5fb27646df4
child 54780 f8d182aedc92
equal deleted inserted replaced
54622:a8dcacf95bff 54623:1126f0607c70
   856 // to do so in a context in which races are impossible, or should do appropriate
   856 // to do so in a context in which races are impossible, or should do appropriate
   857 // locking.
   857 // locking.
   858 
   858 
   859 void os::start_thread(Thread* thread) {
   859 void os::start_thread(Thread* thread) {
   860   // guard suspend/resume
   860   // guard suspend/resume
   861   MutexLockerEx ml(thread->SR_lock(), Mutex::_no_safepoint_check_flag);
   861   MutexLocker ml(thread->SR_lock(), Mutex::_no_safepoint_check_flag);
   862   OSThread* osthread = thread->osthread();
   862   OSThread* osthread = thread->osthread();
   863   osthread->set_state(RUNNABLE);
   863   osthread->set_state(RUNNABLE);
   864   pd_start_thread(thread);
   864   pd_start_thread(thread);
   865 }
   865 }
   866 
   866