> > typically, accessing memory above the stack is not a problem, so a single > red zone below the stack is enough. this red zone need not be an actual > segment, if the thread library picks segment addresses. although this > would force the thread library to keep tabs on the top of the heap. > > Yep!
http://plan9.bell-labs.com/sources/contrib/vsrinivas/stackalloc.c is the thread stack allocator, passed through cb. -- vs