hotspot/src/share/vm/runtime/java.cpp
changeset 11480 1bf714e8adb4
parent 10739 91935236600e
child 13195 be27e1b6a4b9
child 13106 cecfb99d6cff
--- a/hotspot/src/share/vm/runtime/java.cpp	Mon Jan 09 10:27:24 2012 +0100
+++ b/hotspot/src/share/vm/runtime/java.cpp	Wed Jan 11 17:34:02 2012 -0500
@@ -57,6 +57,8 @@
 #include "runtime/task.hpp"
 #include "runtime/timer.hpp"
 #include "runtime/vm_operations.hpp"
+#include "trace/tracing.hpp"
+#include "trace/traceEventTypes.hpp"
 #include "utilities/dtrace.hpp"
 #include "utilities/globalDefinitions.hpp"
 #include "utilities/histogram.hpp"
@@ -502,6 +504,11 @@
   if (JvmtiExport::should_post_thread_life()) {
     JvmtiExport::post_thread_end(thread);
   }
+
+  EVENT_BEGIN(TraceEventThreadEnd, event);
+  EVENT_COMMIT(event,
+      EVENT_SET(event, javalangthread, java_lang_Thread::thread_id(thread->threadObj())));
+
   // Always call even when there are not JVMTI environments yet, since environments
   // may be attached late and JVMTI must track phases of VM execution
   JvmtiExport::post_vm_death();