Skip to content

Commit

Permalink
8329663: hs_err file event log entry for thread adding/removing shoul…
Browse files Browse the repository at this point in the history
…d print current thread

Backport-of: 3ebf8c9359da2f45e4cefb7be2276d33c30979aa
  • Loading branch information
MBaesken committed May 15, 2024
1 parent 9b8f988 commit 87fe0d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/runtime/threads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,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);
Expand Down Expand Up @@ -1071,7 +1071,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,
Expand Down

1 comment on commit 87fe0d2

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.