diff options
author | Paolo Molaro <lupus@oddwiz.org> | 2007-07-04 19:35:46 +0400 |
---|---|---|
committer | Paolo Molaro <lupus@oddwiz.org> | 2007-07-04 19:35:46 +0400 |
commit | 3984302db152018149ba967f5928de46b69316b8 (patch) | |
tree | 55a08698272f236da09934804e609e3f833d144f /libgc/darwin_stop_world.c | |
parent | 5c11de177382e74df5d27c5d871990a89695c1db (diff) |
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).
svn path=/trunk/mono/; revision=81341
Diffstat (limited to 'libgc/darwin_stop_world.c')
-rw-r--r-- | libgc/darwin_stop_world.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgc/darwin_stop_world.c b/libgc/darwin_stop_world.c index 04bb415e026..6dcc0680831 100644 --- a/libgc/darwin_stop_world.c +++ b/libgc/darwin_stop_world.c @@ -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; } |