[Mono-osx] OS X builds and -DUSE-MUNMAP

Allan Hsu allan at counterpop.net
Fri Nov 24 07:33:20 EST 2006


On Nov 23, 2006, at 6:07 AM, Andreas Färber wrote:

> I don't really have an opinion on this issue, not knowing what that  
> flag changes. Maybe if you tell us you'll get some more replies. :-)

Defining -DUSE_MUNMAP compiles the garbage collector with the ability  
to unmap pages. Without the flag defined, the GC will never return  
managed memory back to the OS. This isn't a problem for a lot of  
applications, but if the size of your application's working set or  
its memory allocation patterns change drastically, your application  
will hang on to a lot of memory that it doesn't need.

	-Allan
--
Allan Hsu <allan at counterpop dot net>
1E64 E20F 34D9 CBA7 1300  1457 AC37 CBBB 0E92 C779





More information about the Mono-osx mailing list