Author: zoltan
Date: 2005-03-09 06:52:07 -0500 (Wed, 09 Mar 2005)
New Revision: 41594
Modified:
trunk/mono/libgc/ChangeLog
trunk/mono/libgc/solaris_threads.c
Log:
2005-03-09 Zoltan Varga <[EMAIL PROTECTED]>
* solaris_threads.c (GC_thread_is_registered): Add this for solaris
too.
Modified: trunk/mono/libgc/ChangeLog
===================================================================
--- trunk/mono/libgc/ChangeLog 2005-03-09 11:00:00 UTC (rev 41593)
+++ trunk/mono/libgc/ChangeLog 2005-03-09 11:52:07 UTC (rev 41594)
@@ -1,5 +1,8 @@
2005-03-09 Zoltan Varga <[EMAIL PROTECTED]>
+ * solaris_threads.c (GC_thread_is_registered): Add this for solaris
+ too.
+
* pthread_support.c (GC_thread_is_registered): Move this outside of
the #ifdef THREAD_LOCAL_ALLOC.
Modified: trunk/mono/libgc/solaris_threads.c
===================================================================
--- trunk/mono/libgc/solaris_threads.c 2005-03-09 11:00:00 UTC (rev 41593)
+++ trunk/mono/libgc/solaris_threads.c 2005-03-09 11:52:07 UTC (rev 41594)
@@ -624,6 +624,17 @@
return(p);
}
+int GC_thread_is_registered (void)
+{
+ void *ptr;
+
+ LOCK();
+ ptr = (void *)GC_lookup_thread(thr_self());
+ UNLOCK();
+
+ return ptr ? 1 : 0;
+}
+
/* Solaris 2/Intel uses an initial stack size limit slightly bigger than the
SPARC default of 8 MB. Account for this to warn only if the user has
raised the limit beyond the default.
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches