equal
deleted
inserted
replaced
909 } |
909 } |
910 |
910 |
911 // Write the thread status value to threadStatus field in java.lang.Thread java class. |
911 // Write the thread status value to threadStatus field in java.lang.Thread java class. |
912 void java_lang_Thread::set_thread_status(oop java_thread, |
912 void java_lang_Thread::set_thread_status(oop java_thread, |
913 java_lang_Thread::ThreadStatus status) { |
913 java_lang_Thread::ThreadStatus status) { |
914 assert(JavaThread::current()->thread_state() == _thread_in_vm, "Java Thread is not running in vm"); |
|
915 // The threadStatus is only present starting in 1.5 |
914 // The threadStatus is only present starting in 1.5 |
916 if (_thread_status_offset > 0) { |
915 if (_thread_status_offset > 0) { |
917 java_thread->int_field_put(_thread_status_offset, status); |
916 java_thread->int_field_put(_thread_status_offset, status); |
918 } |
917 } |
919 } |
918 } |