mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-04 15:38:58 +00:00
8329663: hs_err file event log entry for thread adding/removing should print current thread
Reviewed-by: kevinw, rrich
This commit is contained in:
parent
be45de1f93
commit
3ebf8c9359
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user