[Gc] patch against 6.6 to fix darwin port and memory leaks.

Allan Hsu allan at counterpop.net
Tue Jun 13 20:22:40 PDT 2006

The following patch against libgc 6.6 fixes a libgc on OS X memory  
leak and various OS X mach port leaks that I was trying to fix in Mono.

It looks like libgc 6.7 has a similar vm_deallocate fix for the  
memory leak (and could explain why the Mono SVN version of libgc  
includes the vm_deallocate code), but I was slightly smart and  
reduced the number of calls to current_task() by reusing the same  
value for each of my calls to mach_port_deallocate().

I'm not terribly familiar with libgc, so it would be nice if somebody  
could look this over.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gc6.6-blargle.patch
Type: application/octet-stream
Size: 3225 bytes
Desc: not available
Url : https://napali.hpl.hp.com/pipermail/gc/attachments/20060613/10ec22fb/gc6.6-blargle.obj
-------------- next part --------------
Allan Hsu <allan at counterpop dot net>
1E64 E20F 34D9 CBA7 1300  1457 AC37 CBBB 0E92 C779

More information about the Gc mailing list