[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
pthreadP.h stack growth/allocation assumption
- From: Ian Wienand <ianw gelato unsw edu au>
- To: phil-list redhat com
- Subject: pthreadP.h stack growth/allocation assumption
- Date: Mon, 17 Mar 2003 17:23:52 +1100
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]