diff options
author | 2003-05-16 22:09:32 +0000 | |
---|---|---|
committer | 2003-05-16 22:09:32 +0000 | |
commit | 7ac5b8e2fae145766821d141cf892bbfa50d6618 (patch) | |
tree | b72d74efac9467f44f10503be7abd9531bb4f370 /nptl/allocatestack.c | |
parent | Update. (diff) | |
download | glibc-7ac5b8e2fae145766821d141cf892bbfa50d6618.tar.gz glibc-7ac5b8e2fae145766821d141cf892bbfa50d6618.tar.bz2 glibc-7ac5b8e2fae145766821d141cf892bbfa50d6618.zip |
Update.
* pthread_join.c (pthread_join): Set tid field of the joined
thread to -1. This isn't necessary but helps to recognize some
error conditions with almost no cost.
* allocatestack.c (FREE_P): Also negative values indicate an
unused stack.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r-- | nptl/allocatestack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 95ee992a18..9653b62cab 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -111,7 +111,7 @@ static unsigned int nptl_ncreated; /* Check whether the stack is still used or not. */ -#define FREE_P(descr) ((descr)->tid == 0) +#define FREE_P(descr) ((descr)->tid <= 0) /* We create a double linked list of all cache entries. Double linked |