[Mono-osx] OS X builds and -DUSE-MUNMAP
allan at counterpop.net
Mon Nov 27 16:11:10 EST 2006
On Nov 27, 2006, at 12:58 PM, Eoin Norris wrote:
> 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?
Yes. This is exactly what the current release builds of Mono do. When
you call GC.Collect(), objects will be collected, but free pages on
the managed heap are not returned to the OS. Instead, they are kept
around for later use by managed objects. The -DUSE_MUNMAP define
builds the GC with the ability to periodically unmap unused pages
and return them to the OS.
Allan Hsu <allan at counterpop dot net>
1E64 E20F 34D9 CBA7 1300 1457 AC37 CBBB 0E92 C779
More information about the Mono-osx