Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjonas <jonas@localhost>2009-07-02 11:59:30 +0400
committerjonas <jonas@localhost>2009-07-02 11:59:30 +0400
commit26045ec0b2807fb7f4969299be12b33b0aaf93eb (patch)
treef50c03bdc945dfa6878a7e8633329bc5f93d7235 /libgc/pthread_support.c
parent3513638089d00b5c8e05cadb05755edebc0870f9 (diff)
2009-07-02 jonas echterhoff <jonas@unity3d.com>
svn path=/trunk/mono/; revision=137261
Diffstat (limited to 'libgc/pthread_support.c')
-rw-r--r--libgc/pthread_support.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/libgc/pthread_support.c b/libgc/pthread_support.c
index 11d2cd6ad71..46a5f1f469f 100644
--- a/libgc/pthread_support.c
+++ b/libgc/pthread_support.c
@@ -1010,7 +1010,11 @@ void GC_thr_init()
t -> flags = DETACHED | MAIN_THREAD;
#ifdef MONO_DEBUGGER_SUPPORTED
if (gc_thread_vtable && gc_thread_vtable->thread_created)
- gc_thread_vtable->thread_created (pthread_self (), &t->stop_info.stack_ptr);
+# ifdef GC_DARWIN_THREADS
+ gc_thread_vtable->thread_created (mach_thread_self (), &t->stop_info.stack_ptr);
+# else
+ gc_thread_vtable->thread_created (pthread_self (), &t->stop_info.stack_ptr);
+# endif
#endif
GC_stop_init();
@@ -1324,7 +1328,11 @@ void * GC_start_routine_head(void * arg, void *base_addr,
# endif /* IA64 */
#ifdef MONO_DEBUGGER_SUPPORTED
if (gc_thread_vtable && gc_thread_vtable->thread_created)
- gc_thread_vtable->thread_created (my_pthread, &me->stop_info.stack_ptr);
+# ifdef GC_DARWIN_THREADS
+ gc_thread_vtable->thread_created (mach_thread_self(), &me->stop_info.stack_ptr);
+# else
+ gc_thread_vtable->thread_created (my_pthread, &me->stop_info.stack_ptr);
+# endif
#endif
UNLOCK();