Wed Jul 4 17:46:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
authorPaolo Molaro <lupus@oddwiz.org>
Wed, 4 Jul 2007 15:35:46 +0000 (15:35 -0000)
committerPaolo Molaro <lupus@oddwiz.org>
Wed, 4 Jul 2007 15:35:46 +0000 (15:35 -0000)
* 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

libgc/ChangeLog
libgc/darwin_stop_world.c

index 70d44fe56e1087e459fe48b9889960c6b582c7bb..ffdf7cc9e5ec1c1f31a64964359313199917cd8e 100644 (file)
@@ -1,3 +1,10 @@
+
+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
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;
   }