changeset 4907:bf3070e2ed2c

8021353: Event based tracing is missing thread exit Reviewed-by: allwin, dcubed, acorn
author egahlin
date Fri, 26 Jul 2013 16:19:59 +0200
parents 3743512d8d4c
children 675a89fd4548
files src/share/vm/runtime/thread.cpp src/share/vm/trace/traceMacros.hpp
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.cpp	Fri Jul 19 05:54:39 2013 -0700
+++ b/src/share/vm/runtime/thread.cpp	Fri Jul 26 16:19:59 2013 +0200
@@ -332,6 +332,8 @@
   // Reclaim the objectmonitors from the omFreeList of the moribund thread.
   ObjectSynchronizer::omFlush (this) ;
 
+  THREAD_EXIT(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
--- a/src/share/vm/trace/traceMacros.hpp	Fri Jul 19 05:54:39 2013 -0700
+++ b/src/share/vm/trace/traceMacros.hpp	Fri Jul 26 16:19:59 2013 +0200
@@ -26,6 +26,7 @@
 #define SHARE_VM_TRACE_TRACE_MACRO_HPP
 
 #define EVENT_THREAD_EXIT(thread)
+#define THREAD_EXIT(thread)
 
 #define TRACE_INIT_ID(k)
 #define TRACE_DATA TraceThreadData