hotspot/src/share/vm/classfile/javaClasses.cpp
changeset 15234 ff1f01be5fbd
parent 15232 3c75bf718b2e
child 17029 9ff8d7c0ed79
child 18056 0e99ee964114
equal deleted inserted replaced
15233:c06b129cf6c7 15234:ff1f01be5fbd
   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 }