From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H . J . Lu" To: Ulrich Drepper Cc: GNU libc hacker Subject: Re: back for now Date: Sun, 19 Dec 1999 08:21:00 -0000 Message-id: <19991219082116.A17290@lucon.org> References: X-SW-Source: 1999-12/msg00081.html On Sat, Dec 18, 1999 at 11:53:25AM -0800, Ulrich Drepper wrote: > I'm back for now and checked in the changes I've made over the days. > Mainly I've taken most of the changes I got and applied them (some of > them modified, e.g., HJ's thread patch). > Can we also fix linuxthread in 2.1? Also I am not quite sure if we should put a guard page beyond the stack bottom. Shouldn't we use this or at least fix the comment? H.J. --- manager.c Sun Dec 19 07:51:27 1999 +++ /tmp/manager.c Sun Dec 19 08:17:30 1999 @@ -315,7 +315,7 @@ static int pthread_allocate_stack(const else { /* Put a bad page at the bottom of the stack */ - guardaddr = (void *)new_thread_bottom - stacksize; + guardaddr = (void *)new_thread_bottom; guardsize = attr->__guardsize; if (mmap ((caddr_t) guardaddr, guardsize, 0, MAP_FIXED, -1, 0) == MAP_FAILED)