8267209: Child threads should defer logging to after child-parent handshake

Reviewed-by: dholmes, coleenp
This commit is contained in:
Thomas Stuefe 2021-06-08 03:57:38 +00:00
parent ae986bc8df
commit f40c89e8e9
2 changed files with 6 additions and 6 deletions

View file

@ -684,9 +684,6 @@ static void *thread_native_entry(Thread *thread) {
osthread->set_thread_id(os::current_thread_id());
log_info(os, thread)("Thread is alive (tid: " UINTX_FORMAT ", pthread id: " UINTX_FORMAT ").",
os::current_thread_id(), (uintx) pthread_self());
if (UseNUMA) {
int lgrp_id = os::numa_get_group_id();
if (lgrp_id != -1) {
@ -713,6 +710,9 @@ static void *thread_native_entry(Thread *thread) {
}
}
log_info(os, thread)("Thread is alive (tid: " UINTX_FORMAT ", pthread id: " UINTX_FORMAT ").",
os::current_thread_id(), (uintx) pthread_self());
assert(osthread->pthread_id() != 0, "pthread_id was not set as expected");
// call one more level start routine