+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
*/
#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>
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);
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);
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);