equal
deleted
inserted
replaced
680 OSThread* osthread = thread->osthread(); |
680 OSThread* osthread = thread->osthread(); |
681 Monitor* sync = osthread->startThread_lock(); |
681 Monitor* sync = osthread->startThread_lock(); |
682 |
682 |
683 osthread->set_thread_id(os::Bsd::gettid()); |
683 osthread->set_thread_id(os::Bsd::gettid()); |
684 |
684 |
685 log_info(os, thread)("Thread is alive (tid: " UINTX_FORMAT ", pthread id: " UINTX_FORMAT ".", |
685 log_info(os, thread)("Thread is alive (tid: " UINTX_FORMAT ", pthread id: " UINTX_FORMAT ").", |
686 os::current_thread_id(), (uintx) pthread_self()); |
686 os::current_thread_id(), (uintx) pthread_self()); |
687 |
687 |
688 #ifdef __APPLE__ |
688 #ifdef __APPLE__ |
689 uint64_t unique_thread_id = locate_unique_thread_id(osthread->thread_id()); |
689 uint64_t unique_thread_id = locate_unique_thread_id(osthread->thread_id()); |
690 guarantee(unique_thread_id != 0, "unique thread id was not found"); |
690 guarantee(unique_thread_id != 0, "unique thread id was not found"); |
718 } |
718 } |
719 |
719 |
720 // call one more level start routine |
720 // call one more level start routine |
721 thread->run(); |
721 thread->run(); |
722 |
722 |
723 log_info(os, thread)("Thread finished (tid " UINTX_FORMAT ", pthread id " UINTX_FORMAT ").", |
723 log_info(os, thread)("Thread finished (tid: " UINTX_FORMAT ", pthread id: " UINTX_FORMAT ").", |
724 os::current_thread_id(), (uintx) pthread_self()); |
724 os::current_thread_id(), (uintx) pthread_self()); |
725 |
725 |
726 return 0; |
726 return 0; |
727 } |
727 } |
728 |
728 |
869 |
869 |
870 // initialize signal mask for this thread |
870 // initialize signal mask for this thread |
871 // and save the caller's signal mask |
871 // and save the caller's signal mask |
872 os::Bsd::hotspot_sigmask(thread); |
872 os::Bsd::hotspot_sigmask(thread); |
873 |
873 |
874 log_info(os, thread)("Thread attached (tid: " UINTX_FORMAT ", pthread id: " UINTX_FORMAT ".", |
874 log_info(os, thread)("Thread attached (tid: " UINTX_FORMAT ", pthread id: " UINTX_FORMAT ").", |
875 os::current_thread_id(), (uintx) pthread_self()); |
875 os::current_thread_id(), (uintx) pthread_self()); |
876 |
876 |
877 return true; |
877 return true; |
878 } |
878 } |
879 |
879 |