Wed Jul 4 17:46:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
[mono.git] / libgc / darwin_stop_world.c
index 04bb415e02624dafba3620141fa0810a05a7dbbf..6dcc0680831b1140d2166b6c9351d6064cc15af6 100644 (file)
@@ -280,13 +280,14 @@ void GC_push_all_stacks() {
 static mach_port_t GC_mach_handler_thread;
 static int GC_use_mach_handler_thread = 0;
 
-static struct GC_mach_thread GC_mach_threads[THREAD_TABLE_SZ];
+#define SUSPEND_THREADS_SIZE 2048
+static struct GC_mach_thread GC_mach_threads[SUSPEND_THREADS_SIZE];
 static int GC_mach_threads_count;
 
 void GC_stop_init() {
   int i;
 
-  for (i = 0; i < THREAD_TABLE_SZ; i++) {
+  for (i = 0; i < SUSPEND_THREADS_SIZE; i++) {
     GC_mach_threads[i].thread = 0;
     GC_mach_threads[i].already_suspended = 0;
   }