hotspot/src/share/vm/classfile/javaClasses.cpp
changeset 18066 b4b1f65075e5
parent 18065 7d53ab28f937
parent 18025 b7bcf7497f93
child 19266 bb0324cbe0aa
equal deleted inserted replaced
18065:7d53ab28f937 18066:b4b1f65075e5
   959   }
   959   }
   960 }
   960 }
   961 
   961 
   962 // Read thread status value from threadStatus field in java.lang.Thread java class.
   962 // Read thread status value from threadStatus field in java.lang.Thread java class.
   963 java_lang_Thread::ThreadStatus java_lang_Thread::get_thread_status(oop java_thread) {
   963 java_lang_Thread::ThreadStatus java_lang_Thread::get_thread_status(oop java_thread) {
   964   assert(Thread::current()->is_VM_thread() ||
   964   assert(Thread::current()->is_Watcher_thread() || Thread::current()->is_VM_thread() ||
   965          JavaThread::current()->thread_state() == _thread_in_vm,
   965          JavaThread::current()->thread_state() == _thread_in_vm,
   966          "Java Thread is not running in vm");
   966          "Java Thread is not running in vm");
   967   // The threadStatus is only present starting in 1.5
   967   // The threadStatus is only present starting in 1.5
   968   if (_thread_status_offset > 0) {
   968   if (_thread_status_offset > 0) {
   969     return (java_lang_Thread::ThreadStatus)java_thread->int_field(_thread_status_offset);
   969     return (java_lang_Thread::ThreadStatus)java_thread->int_field(_thread_status_offset);