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
path: root/libgc
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
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')
-rw-r--r--libgc/ChangeLog5
-rw-r--r--libgc/darwin_stop_world.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/libgc/ChangeLog b/libgc/ChangeLog
index 936fa17e42b..c26cb699653 100644
--- a/libgc/ChangeLog
+++ b/libgc/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2005-12-26 Zoltan Varga <vargaz@gmail.com>
* include/private/gcconfig.h: Disable PROC_VDB on solaris/x86 as it
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