8306883: Thread stacksize is reported with wrong units in os::create_thread logging

Reviewed-by: shade
This commit is contained in:
Thomas Stuefe 2023-04-27 04:57:29 +00:00
parent 9ebcda2165
commit 27c5c1070a
4 changed files with 7 additions and 7 deletions

View File

@ -892,9 +892,9 @@ bool os::create_attached_thread(JavaThread* thread) {
PosixSignals::hotspot_sigmask(thread);
log_info(os, thread)("Thread attached (tid: " UINTX_FORMAT ", kernel thread id: " UINTX_FORMAT
", stack: " PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT "k) ).",
", stack: " PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT "K) ).",
os::current_thread_id(), (uintx) kernel_thread_id,
p2i(thread->stack_base()), p2i(thread->stack_end()), thread->stack_size());
p2i(thread->stack_base()), p2i(thread->stack_end()), thread->stack_size() / K);
return true;
}

View File

@ -708,9 +708,9 @@ bool os::create_attached_thread(JavaThread* thread) {
PosixSignals::hotspot_sigmask(thread);
log_info(os, thread)("Thread attached (tid: " UINTX_FORMAT ", pthread id: " UINTX_FORMAT
", stack: " PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT "k) ).",
", stack: " PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT "K) ).",
os::current_thread_id(), (uintx) pthread_self(),
p2i(thread->stack_base()), p2i(thread->stack_end()), thread->stack_size());
p2i(thread->stack_base()), p2i(thread->stack_end()), thread->stack_size() / K);
return true;
}

View File

@ -1025,7 +1025,7 @@ bool os::create_attached_thread(JavaThread* thread) {
PosixSignals::hotspot_sigmask(thread);
log_info(os, thread)("Thread attached (tid: " UINTX_FORMAT ", pthread id: " UINTX_FORMAT
", stack: " PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT "k) ).",
", stack: " PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT "K) ).",
os::current_thread_id(), (uintx) pthread_self(),
p2i(thread->stack_base()), p2i(thread->stack_end()), thread->stack_size() / K);

View File

@ -621,9 +621,9 @@ bool os::create_attached_thread(JavaThread* thread) {
thread->set_osthread(osthread);
log_info(os, thread)("Thread attached (tid: " UINTX_FORMAT ", stack: "
PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT "k) ).",
PTR_FORMAT " - " PTR_FORMAT " (" SIZE_FORMAT "K) ).",
os::current_thread_id(), p2i(thread->stack_base()),
p2i(thread->stack_end()), thread->stack_size());
p2i(thread->stack_end()), thread->stack_size() / K);
return true;
}