
Dec. 2, 2002
3:04 p.m.
Guido:
Do you know if setting the stack limit actually allocates that much memory for the stack in the process in Mac OSX, or does it only reserve VM space (like on traditional Unix)?
Strictly speaking, in traditional Unix it doesn't do either, it just sets a limit on how big the stack can grow. Actually allocating stack pages is done on demand. I expect this is what MacOSX does. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+