On Thu, Apr 22, 2010 at 2:11 AM, Andrei Matei <andreimatei1@xxxxxxxxx> wrote:
Yes, it will ..
may we know the reason why you want to do this?
~cnanda
Thanks for the link! Everything is clear now, the kernel will autogrow a mapping with the MAP_GROWSDOWN as long as the stack pointer is around the location the program has just accessed. So there is no magic specific to regions used as pthread stacks. If I manually set %rsp to my mmaped region and access bytes downward, it will extend just fine.
Yes, it will ..
may we know the reason why you want to do this?
~cnanda
Thanks!
- a_m