Re: Controlling memory allocation

2005-09-05 Thread cwoolf
Good to know that works :) Did you also do the same for free and realloc to keep up with your accounting? The more I thought about it, the more I realized that calls to other library functions could cause address space expansion if that code internally called malloc or mmap. See, I can use the O

Controlling memory allocation

2005-09-04 Thread cwoolf
Let's say I have an OS that can't limit the amount of memory a process is allowed to consume, but I want to run some Python code in a simulated low memory environment... Is there a way to tell Python to limit the size of it's heap? Can you ask it to use a function other than malloc through the C