8329663: hs_err file event log entry for thread adding/removing should print current thread

Reviewed-by: kevinw, rrich
This commit is contained in:
Matthias Baesken 2024-04-08 12:55:50 +00:00
parent be45de1f93
commit 3ebf8c9359

View File

@ -1018,7 +1018,7 @@ void Threads::add(JavaThread* p, bool force_daemon) {
ObjectSynchronizer::inc_in_use_list_ceiling();
// Possible GC point.
Events::log(p, "Thread added: " INTPTR_FORMAT, p2i(p));
Events::log(Thread::current(), "Thread added: " INTPTR_FORMAT, p2i(p));
// Make new thread known to active EscapeBarrier
EscapeBarrier::thread_added(p);
@ -1081,7 +1081,7 @@ void Threads::remove(JavaThread* p, bool is_daemon) {
ObjectSynchronizer::dec_in_use_list_ceiling();
// Since Events::log uses a lock, we grab it outside the Threads_lock
Events::log(p, "Thread exited: " INTPTR_FORMAT, p2i(p));
Events::log(Thread::current(), "Thread exited: " INTPTR_FORMAT, p2i(p));
}
// Operations on the Threads list for GC. These are not explicitly locked,