* darwin_stop_world.c: use a larger array for GC_mach_threads
(it'll need to be enlarged dynamically, but it's with the world
stopped, bug #81974).
svn path=/trunk/mono/; revision=81341
+
+Wed Jul 4 17:46:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
+
+ * darwin_stop_world.c: use a larger array for GC_mach_threads
+ (it'll need to be enlarged dynamically, but it's with the world
+ stopped, bug #81974).
+
2007-05-09 Jonathan Chambers <joncham@gmail.com>
* win32_threads.c: If SuspendThread fails, don't abort. Instead
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;
}