equal
deleted
inserted
replaced
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 |