src/hotspot/share/runtime/thread.inline.hpp
changeset 53305 d193d58ae79d
parent 53244 9807daeb47c4
child 53606 c153b4c52e39
equal deleted inserted replaced
53304:9e968a576dd2 53305:d193d58ae79d
   231 inline void JavaThread::set_terminated_value() {
   231 inline void JavaThread::set_terminated_value() {
   232   // use release-store so the setting of _terminated is seen more quickly
   232   // use release-store so the setting of _terminated is seen more quickly
   233   OrderAccess::release_store((volatile jint *) &_terminated, (jint) _thread_terminated);
   233   OrderAccess::release_store((volatile jint *) &_terminated, (jint) _thread_terminated);
   234 }
   234 }
   235 
   235 
       
   236 // Allow tracking of class initialization monitor use
       
   237 inline void JavaThread::set_class_to_be_initialized(InstanceKlass* k) {
       
   238   assert((k == NULL && _class_to_be_initialized != NULL) ||
       
   239          (k != NULL && _class_to_be_initialized == NULL), "incorrect usage");
       
   240   assert(this == Thread::current(), "Only the current thread can set this field");
       
   241   _class_to_be_initialized = k;
       
   242 }
       
   243 
       
   244 inline InstanceKlass* JavaThread::class_to_be_initialized() const {
       
   245   return _class_to_be_initialized;
       
   246 }
       
   247 
   236 #endif // SHARE_RUNTIME_THREAD_INLINE_HPP
   248 #endif // SHARE_RUNTIME_THREAD_INLINE_HPP