projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2008-07-11 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git]
/
mono
/
metadata
/
profiler.c
diff --git
a/mono/metadata/profiler.c
b/mono/metadata/profiler.c
index 28851576d3122611a2afabcae0bf86b01e9b4d11..8323e3984cfcae0522a6c33690a0f7d3a77f1cee 100644
(file)
--- a/
mono/metadata/profiler.c
+++ b/
mono/metadata/profiler.c
@@
-1434,6
+1434,8
@@
simple_shutdown (MonoProfiler *prof)
char *str;
gint32 see_shutdown_done;
+ mono_thread_attach(mono_get_root_domain());
+
// Make sure we execute simple_shutdown only once
see_shutdown_done = InterlockedExchange(& simple_shutdown_done, TRUE);
if (see_shutdown_done)