[PATCH] attr.c in _STACK_GROWS_UP case.

Carlos O'Donell carlos@baldric.uwo.ca
Mon Dec 29 02:59:00 GMT 2003


On Sun, Dec 28, 2003 at 06:10:21PM -0800, Roland McGrath wrote:
> > Not possible, the stack is the last vma. It grows until all of memory is
> > exhausted. Your previous recommendation was the best solution for S_G_D.
> 
> I don't think you should assume this.  The kernel might have special vmas
> in the highest parts of memory some day (user fixmap area and such) on
> grows-up platforms, as it does now on some (grows-down) platforms.

Granted. So we find the next vma, and set our limit at its start,
failing that we should set it as...
	attr->__stacksize = ~(size_t) attr->__stackaddr;

But only if addr->__stacksize is some large unwieldly value?

c.



More information about the Libc-alpha mailing list