[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

pthreadP.h stack growth/allocation assumption



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
ianw gelato unsw edu au
http://www.gelato.unsw.edu.au





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]