diff options
author | Roland McGrath <roland@gnu.org> | 2003-03-13 21:51:07 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-03-13 21:51:07 +0000 |
commit | 6461e57784358cf4fd261e5e61d064a315aae924 (patch) | |
tree | c204eb7e9d3a13ead269e965d9856759c9bd946d /nptl/allocatestack.c | |
parent | 0579fabbe81afc3051b74c71907e8b5a76e2ab8a (diff) | |
download | glibc-6461e57784358cf4fd261e5e61d064a315aae924.zip glibc-6461e57784358cf4fd261e5e61d064a315aae924.tar.gz glibc-6461e57784358cf4fd261e5e61d064a315aae924.tar.bz2 |
* elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
entries in the map file match too.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r-- | nptl/allocatestack.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index ece9511..a43d94a 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -104,8 +104,10 @@ static LIST_HEAD (stack_used); list_t __stack_user __attribute__ ((nocommon)); hidden_def (__stack_user) +#if COLORING_INCREMENT != 0 /* Number of threads created. */ static unsigned int nptl_ncreated; +#endif /* Check whether the stack is still used or not. */ @@ -352,7 +354,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, void *mem; #if COLORING_INCREMENT != 0 - /* Add one more page for stack coloring. Don't to it for stacks + /* Add one more page for stack coloring. Don't do it for stacks with 16 times pagesize or larger. This might just cause unnecessary misalignment. */ if (size <= 16 * pagesize_m1) @@ -383,8 +385,8 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, if (__builtin_expect (mem == MAP_FAILED, 0)) return errno; - /* 'size' is guaranteed to be greater than zero. So we can - never get a NULL pointer back from MMAP. */ + /* SIZE is guaranteed to be greater than zero. + So we can never get a null pointer back from mmap. */ assert (mem != NULL); #if COLORING_INCREMENT != 0 |