pthreadP.h stack growth/allocation assumption

Ian Wienand <[email protected]>
Newsgroups gmane.comp.lib.phil
Message-ID <[email protected]>
Hello,

In pthreadP.h there is

# define FRAME_LEFT(frame, other) ((char *) frame >= (char *) other)

which seems to assume that things allocated on the stack will be
allocated downwards if the stack grows downwards.  This doesn't happen
on IA64.  

I noticed this because tst-cleanup1 was failing: _pthread_cleanup_push
uses this assumption to chain together the cleanup routines.
linuxthreads also exhibits this behaviour (but there's no test for it
in that library). 

-i
[email protected]
http://www.gelato.unsw.edu.au
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.