Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoff Norton <grompf@sublimeintervention.com>2006-01-03 22:03:23 +0300
committerGeoff Norton <grompf@sublimeintervention.com>2006-01-03 22:03:23 +0300
commit97fcf119b390d0e13d16fd29519f18510c30fe7e (patch)
tree2b57d3c874598d6fbbd43eb33e26cdbea7783bb0 /libgc/darwin_stop_world.c
parente5892133a4c6baea2da74d06a917b7607e1ff2be (diff)
2006-01-03 Geoff Norton <gnorton@customerdna.com>
* darwin_stop_world.c: Merge a patch from Bruce Mitchener that fixes a small leak on OS X. svn path=/trunk/mono/; revision=55018
Diffstat (limited to 'libgc/darwin_stop_world.c')
-rw-r--r--libgc/darwin_stop_world.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgc/darwin_stop_world.c b/libgc/darwin_stop_world.c
index f454a45a03d..60acd83c6bd 100644
--- a/libgc/darwin_stop_world.c
+++ b/libgc/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