src/hotspot/share/classfile/javaClasses.cpp
changeset 58956 9a0a5e70eeb2
parent 58901 2700c409ff10
child 59056 15936b142f86
equal deleted inserted replaced
58955:dfd5196652dd 58956:9a0a5e70eeb2
  1679 void java_lang_Thread::set_thread(oop java_thread, JavaThread* thread) {
  1679 void java_lang_Thread::set_thread(oop java_thread, JavaThread* thread) {
  1680   java_thread->address_field_put(_eetop_offset, (address)thread);
  1680   java_thread->address_field_put(_eetop_offset, (address)thread);
  1681 }
  1681 }
  1682 
  1682 
  1683 bool java_lang_Thread::interrupted(oop java_thread) {
  1683 bool java_lang_Thread::interrupted(oop java_thread) {
  1684 #if INCLUDE_JFR
       
  1685   if (java_thread == NULL) {
       
  1686     // can happen from Jfr::on_vm_init leading to call of JavaThread::sleep
       
  1687     assert(!is_init_completed(), "should only happen during init");
       
  1688     return false;
       
  1689   }
       
  1690 #endif
       
  1691   return java_thread->bool_field_volatile(_interrupted_offset);
  1684   return java_thread->bool_field_volatile(_interrupted_offset);
  1692 }
  1685 }
  1693 
  1686 
  1694 void java_lang_Thread::set_interrupted(oop java_thread, bool val) {
  1687 void java_lang_Thread::set_interrupted(oop java_thread, bool val) {
  1695   java_thread->bool_field_put_volatile(_interrupted_offset, val);
  1688   java_thread->bool_field_put_volatile(_interrupted_offset, val);