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

Eoin Norris e.norris at mac.com
Mon Nov 27 15:58:44 EST 2006


Does the absence of this flag mean that abolutely no memory will ever  
be released. I can see my application increasing in size - mostly the  
mono layers  which has the business logic - without seeming to give  
anything back up.  The cocoa layers do ( I can see memory being  
released when UIs elements are removed).

Is this true even if we call the garbage collector directly in mono -  
GC.Collect et al?

-- Eoin


On 24 Nov 2006, at 12:33, Allan Hsu wrote:

>
> 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
>
>
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20061127/46be12a4/attachment.html 


More information about the Mono-osx mailing list