# HG changeset patch # User mgronlun # Date 1379087220 -7200 # Node ID bfb37d724b0c36cb35d3e3f0b1bbe65b81ec1122 # Parent 9065fbafee8d6177b1a959c1060981b89ed681da 8021353: Event based tracing is missing thread exit Reviewed-by: allwin, acorn, dcubed, dholmes, egahlin diff -r 9065fbafee8d -r bfb37d724b0c hotspot/src/share/vm/runtime/thread.cpp --- a/hotspot/src/share/vm/runtime/thread.cpp Thu Sep 12 15:53:49 2013 +0400 +++ b/hotspot/src/share/vm/runtime/thread.cpp Fri Sep 13 17:47:00 2013 +0200 @@ -333,6 +333,8 @@ // Reclaim the objectmonitors from the omFreeList of the moribund thread. ObjectSynchronizer::omFlush (this) ; + EVENT_THREAD_DESTRUCT(this); + // stack_base can be NULL if the thread is never started or exited before // record_stack_base_and_size called. Although, we would like to ensure // that all started threads do call record_stack_base_and_size(), there is diff -r 9065fbafee8d -r bfb37d724b0c hotspot/src/share/vm/trace/traceMacros.hpp --- a/hotspot/src/share/vm/trace/traceMacros.hpp Thu Sep 12 15:53:49 2013 +0400 +++ b/hotspot/src/share/vm/trace/traceMacros.hpp Fri Sep 13 17:47:00 2013 +0200 @@ -26,6 +26,7 @@ #define SHARE_VM_TRACE_TRACE_MACRO_HPP #define EVENT_THREAD_EXIT(thread) +#define EVENT_THREAD_DESTRUCT(thread) #define TRACE_INIT_ID(k) #define TRACE_DATA TraceThreadData