hotspot/src/share/vm/runtime/thread.cpp
changeset 46742 24ec8a039c90
parent 46732 05423d4b10d2
child 46968 9119841280f4
equal deleted inserted replaced
46741:d5a7407108b4 46742:24ec8a039c90
   846   if (osthread()) {
   846   if (osthread()) {
   847     st->print(" [id=%d]", osthread()->thread_id());
   847     st->print(" [id=%d]", osthread()->thread_id());
   848   }
   848   }
   849 }
   849 }
   850 
   850 
       
   851 void Thread::print_value_on(outputStream* st) const {
       
   852   if (is_Named_thread()) {
       
   853     st->print(" \"%s\" ", name());
       
   854   }
       
   855   st->print(INTPTR_FORMAT, p2i(this));   // print address
       
   856 }
       
   857 
   851 #ifdef ASSERT
   858 #ifdef ASSERT
   852 void Thread::print_owned_locks_on(outputStream* st) const {
   859 void Thread::print_owned_locks_on(outputStream* st) const {
   853   Monitor *cur = _owned_locks;
   860   Monitor *cur = _owned_locks;
   854   if (cur == NULL) {
   861   if (cur == NULL) {
   855     st->print(" (no locks) ");
   862     st->print(" (no locks) ");