Hi scott - it's not stack size that I was looking to set, it's a limit on the total amount of committed virtual memory pages for the entire process. There does not seem to be any mechanism on Mac to set this particular kind of limit. The UNIX function to do it, setrlimit, does not do anything for certain areas that are handled by the Mach part of the kernel instead of the BSD part of it, see here: https://lists.apple.com/archives/unix-porting/2005/Jun/msg00115.html and note that RLIMIT_DATA is not enforced.
But it's not really a big problem though, it's not something that you should need to mess with normally.
- Michael
|