From: Geoff Norton Date: Tue, 3 Jan 2006 19:03:23 +0000 (+0000) Subject: 2006-01-03 Geoff Norton X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b01c4983068dbabca51512407e876405efee29d0;p=gc 2006-01-03 Geoff Norton * darwin_stop_world.c: Merge a patch from Bruce Mitchener that fixes a small leak on OS X. svn path=/trunk/mono/; revision=55018 --- diff --git a/ChangeLog b/ChangeLog index c2a6e30b..cd86c4cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-03 Geoff Norton + + * darwin_stop_world.c: Merge a patch from Bruce Mitchener that fixes a small + leak on OS X. + 2005-12-26 Zoltan Varga * include/private/gcconfig.h: Disable PROC_VDB on solaris/x86 as it diff --git a/darwin_stop_world.c b/darwin_stop_world.c index f454a45a..60acd83c 100644 --- a/darwin_stop_world.c +++ b/darwin_stop_world.c @@ -154,6 +154,7 @@ void GC_push_all_stacks() { # endif GC_push_all_stack(lo, hi); } /* for(p=GC_threads[i]...) */ + vm_deallocate(current_task(), (vm_address_t)act_list, sizeof(thread_t) * listcount); } static mach_port_t GC_mach_handler_thread; @@ -296,6 +297,7 @@ void GC_stop_world() changes = result; prev_list = act_list; prevcount = listcount; + vm_deallocate(current_task(), (vm_address_t)act_list, sizeof(thread_t) * listcount); } while (changes); @@ -367,6 +369,7 @@ void GC_start_world() } } } + vm_deallocate(current_task(), (vm_address_t)act_list, sizeof(thread_t) * listcount); # if DEBUG_THREADS GC_printf0("World started\n"); # endif