projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1a84397
)
Send thread end profiler message on thread detach.
author
Jonathan Chambers
<jonathan@unity3d.com>
Tue, 27 Mar 2012 19:08:15 +0000
(15:08 -0400)
committer
Jonathan Chambers
<jonathan@unity3d.com>
Tue, 27 Mar 2012 19:08:15 +0000
(15:08 -0400)
Contributed under MIT/X11 License
mono/metadata/threads.c
patch
|
blob
|
history
diff --git
a/mono/metadata/threads.c
b/mono/metadata/threads.c
index 9ee0bb46bb7949c1e52c440c39ac81cecda1e59b..a0f98fb9d86d7e8d71ca7eb400b13b1ec0da6004 100644
(file)
--- 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);