From 59763287a60f4568aa573f6e687fb50c6b63b8cf Mon Sep 17 00:00:00 2001 From: Jonathan Chambers Date: Tue, 27 Mar 2012 15:08:15 -0400 Subject: [PATCH] Send thread end profiler message on thread detach. Contributed under MIT/X11 License --- mono/metadata/threads.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mono/metadata/threads.c b/mono/metadata/threads.c index 9ee0bb46bb7..a0f98fb9d86 100644 --- a/mono/metadata/threads.c +++ b/mono/metadata/threads.c @@ -918,6 +918,8 @@ mono_thread_detach (MonoThread *thread) THREAD_DEBUG (g_message ("%s: mono_thread_detach for %p (%"G_GSIZE_FORMAT")", __func__, thread, (gsize)thread->internal_thread->tid)); + mono_profiler_thread_end (thread->internal_thread->tid); + thread_cleanup (thread->internal_thread); SET_CURRENT_OBJECT (NULL); -- 2.25.1