[Mono-devel-list] Mono and Memory

Paolo Molaro lupus at ximian.com
Wed Jul 14 04:47:43 EDT 2004

On 07/13/04 Hamza Karamali wrote:
> Does mono impose a maximum value on the amount of memory that can be
> allocated for internal compiler use?  I checked mempool.c and I can't find

It doesn't impose a limit.

> anything that would impose a limit.  However, I often experience erratic
> and unpredictable memory errors (null pointer exceptions and segfaults)
> after modifying various sections of the source code.  I can't seem to

Well, maybe the segfaults are due to your changes? Of course there may
be bugs in the mono code, triggered by your code, but we can't tell
without seeing your changes.

> figure out why such errors would appear, since the amount of memory taken
> up by the process isn't really very significant.

Right, maybe you should review your changes or post a patch for review
by others.
There is nothing specific about how mono manages memory: it either uses
g_malloc/g_free or it uses mempool_alloc() and all the memory allocated
in a mempool is a freed at once.


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list