Fri Feb 18 16:00:29 CET 2005 Paolo Molaro <lupus@ximian.com>
authorPaolo Molaro <lupus@oddwiz.org>
Fri, 18 Feb 2005 14:50:44 +0000 (14:50 -0000)
committerPaolo Molaro <lupus@oddwiz.org>
Fri, 18 Feb 2005 14:50:44 +0000 (14:50 -0000)
* threads.c: we don't depend on the GC checking tls
slots anymore.
* processes.c: remove unused ref to GC headers.

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

mono/io-layer/ChangeLog
mono/io-layer/processes.c
mono/io-layer/threads.c

index 500d04db2803624f8a1bd865e22e5278bb8e3d20..ff794403c3517d168ea338f132a069acc4599732 100644 (file)
@@ -1,4 +1,10 @@
 
+Fri Feb 18 16:00:29 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * threads.c: we don't depend on the GC checking tls
+       slots anymore.
+       * processes.c: remove unused ref to GC headers.
+
 Thu Feb 17 19:57:11 CET 2005 Paolo Molaro <lupus@ximian.com>
 
        * io.c: remove _wapi_thread_cur_apc_pending () checks
index d9345cb5733a7272f13af959494244d020a1e9e6..bd8d58ef59c1a9a03a7033c5e7aee8adbfc227b3 100644 (file)
@@ -8,10 +8,6 @@
  */
 
 #include <config.h>
-#if HAVE_BOEHM_GC
-#include <mono/os/gc_wrapper.h>
-#include "mono/utils/mono-hash.h"
-#endif
 #include <glib.h>
 #include <string.h>
 #include <pthread.h>
index 119500f55ac16a1c33fb67d2c76ab61f39eb2875..3ebda7c2a59507b19129e0682eae09e782528944 100644 (file)
@@ -8,10 +8,6 @@
  */
 
 #include <config.h>
-#if HAVE_BOEHM_GC
-#include <mono/os/gc_wrapper.h>
-#include "mono/utils/mono-hash.h"
-#endif
 #include <stdio.h>
 #include <glib.h>
 #include <string.h>
@@ -48,10 +44,6 @@ static mono_once_t thread_hash_once = MONO_ONCE_INIT;
 static mono_mutex_t thread_hash_mutex = MONO_MUTEX_INITIALIZER;
 static GHashTable *thread_hash=NULL;
 
-#if HAVE_BOEHM_GC
-static MonoGHashTable *tls_gc_hash = NULL;
-#endif
-
 static void thread_close_private (gpointer handle);
 static void thread_own (gpointer handle);
 
@@ -794,10 +786,6 @@ gboolean TlsFree(guint32 idx)
        thr_ret = pthread_key_delete(TLS_keys[idx]);
        g_assert (thr_ret == 0);
        
-#if HAVE_BOEHM_GC
-       mono_g_hash_table_remove (tls_gc_hash, MAKE_GC_ID (idx));
-#endif
-
        MONO_SPIN_UNLOCK (TLS_spinlock);
        
        return(TRUE);
@@ -872,14 +860,6 @@ gboolean TlsSetValue(guint32 idx, gpointer value)
                return(FALSE);
        }
        
-#if HAVE_BOEHM_GC
-       if (!tls_gc_hash) {
-               MONO_GC_REGISTER_ROOT (tls_gc_hash);
-               tls_gc_hash = mono_g_hash_table_new(g_direct_hash, g_direct_equal);
-       }
-       mono_g_hash_table_insert (tls_gc_hash, MAKE_GC_ID (idx), value);
-#endif
-
        MONO_SPIN_UNLOCK (TLS_spinlock);
        
        return(TRUE);