src/hotspot/share/runtime/thread.cpp
changeset 49321 c3baee120706
parent 49192 6734eeef4283
child 49359 59f6547e151f
equal deleted inserted replaced
49320:0e79ce03b7a2 49321:c3baee120706
   856     int os_prio;
   856     int os_prio;
   857     if (os::get_native_priority(this, &os_prio) == OS_OK) {
   857     if (os::get_native_priority(this, &os_prio) == OS_OK) {
   858       st->print("os_prio=%d ", os_prio);
   858       st->print("os_prio=%d ", os_prio);
   859     }
   859     }
   860     st->print("tid=" INTPTR_FORMAT " ", p2i(this));
   860     st->print("tid=" INTPTR_FORMAT " ", p2i(this));
   861     ext().print_on(st);
       
   862     osthread()->print_on(st);
   861     osthread()->print_on(st);
   863   }
   862   }
   864   if (_threads_hazard_ptr != NULL) {
   863   if (_threads_hazard_ptr != NULL) {
   865     st->print("_threads_hazard_ptr=" INTPTR_FORMAT, p2i(_threads_hazard_ptr));
   864     st->print("_threads_hazard_ptr=" INTPTR_FORMAT, p2i(_threads_hazard_ptr));
   866   }
   865   }
  3123     assert(prio != NoPriority, "A valid priority should be present");
  3122     assert(prio != NoPriority, "A valid priority should be present");
  3124   }
  3123   }
  3125 
  3124 
  3126   // Push the Java priority down to the native thread; needs Threads_lock
  3125   // Push the Java priority down to the native thread; needs Threads_lock
  3127   Thread::set_priority(this, prio);
  3126   Thread::set_priority(this, prio);
  3128 
       
  3129   prepare_ext();
       
  3130 
  3127 
  3131   // Add the new thread to the Threads list and set it in motion.
  3128   // Add the new thread to the Threads list and set it in motion.
  3132   // We must have threads lock in order to call Threads::add.
  3129   // We must have threads lock in order to call Threads::add.
  3133   // It is crucial that we do not block before the thread is
  3130   // It is crucial that we do not block before the thread is
  3134   // added to the Threads list for if a GC happens, then the java_thread oop
  3131   // added to the Threads list for if a GC happens, then the java_thread oop