]> granicus.if.org Git - gc/commitdiff
2005-03-09 Zoltan Varga <vargaz@freemail.hu>
authorZoltan Varga <vargaz@gmail.com>
Wed, 9 Mar 2005 11:00:00 +0000 (11:00 +0000)
committerguest <ivmai@mail.ru>
Fri, 29 Jul 2011 11:24:19 +0000 (15:24 +0400)
* pthread_support.c (GC_thread_is_registered): Move this outside of
the #ifdef THREAD_LOCAL_ALLOC.

svn path=/trunk/mono/; revision=41593

ChangeLog
pthread_support.c

index 9f0c7bdc678a8bc0ea4d904cbd5a4ed236a4f080..71888eea568e918dd8b6b52d206bac14802b6c47 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-09  Zoltan Varga  <vargaz@freemail.hu>
+
+       * pthread_support.c (GC_thread_is_registered): Move this outside of
+       the #ifdef THREAD_LOCAL_ALLOC.
+
 2005-03-03  Zoltan Varga  <vargaz@freemail.hu>
 
        * include/gc.h pthread_support.c win32_threads.: Add 
index a1130ab2c88e4bda6901a34564cb2be6b98f46b6..c39474db537e13a21dced98d6160405ef48bc1e1 100644 (file)
@@ -400,17 +400,6 @@ GC_PTR GC_local_gcj_malloc(size_t bytes,
 
 # endif /* !THREAD_LOCAL_ALLOC */
 
-int GC_thread_is_registered (void)
-{
-       void *ptr;
-
-       LOCK();
-       ptr = (void *)GC_lookup_thread(pthread_self());
-       UNLOCK();
-
-       return ptr ? 1 : 0;
-}
-
 #if 0
 /*
 To make sure that we're using LinuxThreads and not some other thread
@@ -645,6 +634,17 @@ GC_thread GC_lookup_thread(pthread_t id)
     return(p);
 }
 
+int GC_thread_is_registered (void)
+{
+       void *ptr;
+
+       LOCK();
+       ptr = (void *)GC_lookup_thread(pthread_self());
+       UNLOCK();
+
+       return ptr ? 1 : 0;
+}
+
 #ifdef HANDLE_FORK
 /* Remove all entries from the GC_threads table, except the    */
 /* one for the current thread.  We need to do this in the child        */